I am trying to write a grammar rule that will be able to identify when to use someone or anyone, and I got confused. I couldn't find any clear way to do this.
For instance, "anyone can do it" is totally different from "someone can do it", but since both are pronouns referring to unknown entities, it's extremely difficult to predict the correctness of the grammar.
Any suggestions or am I missing something?