A simple next-word prediction engine