Answer the question
In order to leave comments, you need to log in
Definition of the initial form of an English word?
Is there any open JavaScript library that would determine the initial form of an English word (correctly discard typical endings, convert irregular forms of verbs or plurals to dictionary ones, etc.)? For example, for thought it would return think, for mice it would return mouse, for codes it would return code, for was it would return be, for writes it would return write. Required for Firefox extension.
Answer the question
In order to leave comments, you need to log in
I have the same trouble. But I'm looking for an option how to do it in Java. It is possible, of course, to use native libraries, but always cross-platform ones.
One of the thoughts I had was to use hunspell. There is a library for Java that allows you to directly read dictionaries (peeped in solr). But alas, on a simple test, to bring men to man, or women to woman, did not pass. This option would be ideal, because. it is possible not only to cite English in this way, but also many others.
Also, an option like in Solr using stemming (stemming) could also come up, this is the rejection of endings to bring them to one form using the same hunspell. But for these words, it also does not fit.
Help please who knows.
By the way, I just discovered such a library and service on the Internet as JSpell ( http://www.jspell.com/ ). They indicate that you can connect from JS via AJAX to check spelling and select a replacement option as in Word. You can also look at WebJSpell ( http://natura.di.uminho.pt/webjspell/jsol.pl ) which is supposed to use JSpell. When you enter a word into a form on the site, it returns the initial form of the word.
vmb, unfortunately this library does not suit me, but I hope it suits you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question