Idiot is a small program that "learns" from text that is fed to it, and then generates sentences from its database. It supports all languages.