Posted

How to know if a sentence starts with a verb or not?

I'm looking for a way to check if a word is a verb. I don't know what would be a good solution to go with.    Custom AI model?  Free/Paid existing api?  Matching from a verbs.json?  Something else?    I also think that it depends a lot on the context. For example the word "Book" could mean a book or the act of booking something like a hotel.    My goal ultimately is to know from a given sentence if it starts with a verb or not.    Book a plane ticket => Should returns me a true because it starts with a verb.  Thomas is reading a book => Should returns me a false because it doesn't start with a verb.    Any thoughts?    Thanks in advance!

Join the conversation

Sign in to post a reply and interact with thousands of makers.

4 replies

Loading replies...
Makerlog

Where makers learn, build, and grow in public.

© Nifty Development, LLC