This NLP script looks like it was written by someone who learned English solely from the internet. If it's your second language that's quite an achievement, but if it's your first then it would behoove you to stay awake in class more often. The rules of grammatical syntax have the same logical consistency as a programming language, and if you studied them from that perspective you would find it simple to port them to executable code. Parts of speech need to be clearly defined in order to define "natural" sentence structures.
Aside from the grammar, there are a lot of mistaken entries:
This in "nlp_greet.txt":
Code:
#greetval = <hee> : hello
"hee" does not mean "hello". Someone may deduce from context that it's your greeting, but at best they'll think you're idiosyncratic, at worst they'll think you're mentally disabled.
This in "nlp_verb.txt":
Code:
#event = <sm> : bsdm
I don't know what 'bsdm' is, but it's probably not kink related, and definitely doesn't mean BDSM (Bondage Discipline Sado-Masochism)
Code:
#event = <hardcore> : sex
#event = <hentai> : sex
I hate to break it to you lifestyle fappers, but hardcore and hentai aren't sex, they're genres of porn. Watching porn isn't sex, though any accompanying autoeroticism would be.
The 'ing' forms aren't syntactically verbs, because they are in gerund form they function as nouns, and require the use of an auxiliary verb. This is one reason auxiliary verbs should be distinctly defined from action verbs. 'Do' actually is an auxilary verb, and 'do doing' is grammatically correct but linguistically awkward (not natural language.)
Code:
#verb = <anal> : anal
#verb = <blow> : blowjob
"Anal" and "Blowjob" aren't verbs, and it isn't natural language to use them as verbs (and "blowjobbing" isn't correct or natural!) "Sodomy" and "Fellate" are verbs, though not used as naturally as many colorful euphemisms and dysphemisms.
This in "nlp_rewrite.txt":
"Sex" isn't a verb, and it's not equivalent to "fucking". It's a noun, and "having sex" can refer to any sexual activity, while "fucking" means penetration.
This may be a user convenience, but one letter words are so bound to be error prone that you could save yourself headaches by minimizing the use of them. The only ones you can't get away from are the pronoun "I" and the article "a", and their contexts can be more easily defined.