I seem to recall short snippets of IDE code completion being one of the first commercial applications of it.