We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Does anyone have any experience or suggestions on how to create verb detection in a typed sentence. Essentially, someone would be able to type a sentence, and shortly after or with a button prompt, the verb(s) in the sentence are replaced e.g. "I read the story." to "I mis-read the story."
Any thoughts?
Thanks! ~jes
Answers
https://Forum.Processing.org/two/discussions/tagged?Tag=replace()
Is this in java or js? If the latter, check rita.js For Java... Idk. There was a recent question about this. Search in the forum for rita and it should be one of the first hits.
Kf
Rita 1.2.12 is also available for Java mode. You can add it from the PDE Contributions Manager > Libraries.
https://github.com/dhowe/RiTa#in-processing
Specifically, you want to do Part Of Speech (POS) analysis.
https://rednoise.org/rita/tutorial/analyzing.php#POS
Any token whose first character is a 'v' is a verb in Penn encoding('vb', 'vbd', 'vbg' ...). If you use WordNet style, it is just a simple 'v'.
perfect - thanks everyone. @jeremydouglass this should work perfectly.