What's the best way to handle artifial inteligence?
With an AK.
But a true AI, by definition, needs to learn and adapt. It's incredibly difficult to do.. I've heard "a million lines of C++ code" as a round estimate at how difficult it is to do.
Sentence parsing for a good guess, however, isn't all that hard.