Around the world, people are spending an increasing amount of time on their mobile devices for email, social networking. But typing on mobile devices can be a serious pain. which made the incentive to develop an algorithm to predict the next word based on the precedent words and make the typing fast and easy for users .