in reply to how to guess the kind of spoken or programming language a text is written in

What you want is N-Gram analysis. Go take a look at the CPAN Search Site and you will find a whole host of modules to help you.
  • Comment on Re: how to guess the kind of spoken or programming language a text is written in

Replies are listed 'Best First'.
Re^2: how to guess the kind of spoken or programming language a text is written in
by perlfan (Parson) on Aug 12, 2006 at 13:18 UTC
    Speaking of which, the Google Research Blog has a recent, relevent post about this.