I need to build a php dictionary, which will find the root word of a word. Ex. search "cars", it will tell "Cars is plural of car" Or "took", it's "the past tense of take"
I am considering using Wordnet, but it seems complicated.
Any suggestion? m desperated
Regards;
Well, since suggested stemmer does not work correctly for you, you can choose some, that suits you better from here:
http://snowball.tartarus.org/
Here is also some interesting library: http://sourceforge.net/projects/nlp/
Also links to similiar questions on StackOverflow:
NLP programming tools using PHP?
Text mining with PHP
UPDATE: How do I do word Stemming or Lemmatization?
http://www.reddit.com/r/programming/comments/8e5d3/how_do_i_programatically_do_stemming_eg_eating_to/
http://www.nltk.org/
Wordnet lemmatizer: http://wordnet.princeton.edu/wordnet/download/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With