Some algorithm for natural language processing