Impersonator is a project mainly written in Perl, it's free.
IRC bot for impersonating chatters
The impersonator bot joins the specified channels and keeps an n-gram for each nick. If you are the 'owner' you may give it the following commands: