Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge

Oly Su
Oly Su
6,119 Points

Is there any way to validate the entries grammatically?

Just putting this random question out there:

Is there any way to validate if the entry is 'grammatically correct'?

e.g. to tell if the value entered is an adjective, noun or verb

Is there a 3rd-party solution that could connect to this?

Thanks!

2 Answers

AI development has become very impressive. There is plugging that go through grammar and check it. Here is one developer I found on github a while back. Who is working on chrome extension using JavaScript.

https://github.com/Automattic/atd-chrome

I think it from a project called 'After the Deadline' that is open source. It does spell checking and intelligent grammar checking. For those who are interested can check out the site

https://github.com/Automattic/atd-chrome

Some amazing cool stuff.

Oly Su
Oly Su
6,119 Points

Awesome! Thanks for sharing the link :)

I'm not experienced in language processing, but I imagine that such a thing would not be possible. The best a program could do would be to determine the statistical probability that a value is a particular part of speech based on the context.

If you think of simple words like "love" or "take", it's really impossible to know if those words are nouns or verbs. I can say "I love someone" or "he showed a great deal of love toward his dog." Similarly, "I take home a prize" and "what's your take on this question?" illustrate that words are tricky things that can serve different roles in a sentence.

I'd love to hear more about this topic from someone experienced in computational linguistics, a field of study to which I am increasingly drawn.