Alrighty, a quick update.
After multiple (some successful, some unsuccessful) attempts to implement a keyword-based algorithm, I figured I exhaust a lot of my efforts on something that is already known to be temporary. Instead, what I need is the AI implemented, and I went on and got one that...