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

May be you use AI::categorizer or similar modules along with other methods.
--Artist
  • Comment on Re: how to guess the kind of spoken or programming language a text is written in