Text prediction based on N-gram generated from Wiki Db