2 ms·
This doesn't look like it's doing any actual NLP. This just seems to be looking for a "conjunction" or a "prepositions" and replaces text. This would have been
by gravypod 10y ago
This doesn't look like it's doing any actual NLP. This just seems to be looking for a "conjunction" or a "prepositions" and replaces text.
This would have been a great application for something like nlp_compromise or some other NLP library.
The source code also needs a lot of work. If you run that through a linter it'll throw you against a wall.
That dev needs to watch "Javascript the Good Parts"
- hephaestos 10y ago> This doesn't look like it's doing any actual NLP. This just seems to be looking for a "conjunction" or a "prepositions" and replaces text. Although doing actual NLP would be better (though difficult in JS), using this method of looking at conjunctions and prepositions actually works correctly almost all of the time. However, I am also working on a Python implementation that would work even better by using POS tagging. > The source code also needs a lot of work. Yes! Please contibute and help me improve this project :-)