simple engine to recognize words