I need to ensure that certain strings are valid questions. I am thinking of how to write this myself, but without being pretty limiting it is actually a fairly complex bit of analysis, and I'm sure it must have been done many times before.
I'm not just talking about starting with an interrogatory word and ending with a question mark. For example I would like all these to pass:
- Is the grand canyon large?
- I know canyons are usually pretty big, but is the grand canyon large?
- I was thinking earlier, is the grand canyon a large canyon?
I would love to get hold of an existing js lib (or port something) that does this for me. I've been looking around for a while but have found nothing.
- P.S. I had to use the word 'inquiry' in the title as the word 'question' is banned.