A program that generates a text with desired length given the first 2 words of the text. It generates the text based on statistical properties from a database. The database is the file called "DataFile.hs" and the other file is the source file. The program is implemented with functional programming paradigm using Haskell language.