Linux - How to find language of a string, Detect language of a string from google

How to find language of a string



detectlanguage() { curl -s "http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=$@" | sed 's/{"responseData": {"language":"\([^"]*\)".*/\1\n/'; }

Usage:
detectlanguage <phrase>

Example:
detectlanguage bola

The topic on Linux - How to find language of a string is posted by - Math

Hope you have enjoyed, Linux - How to find language of a stringThanks for your time

Tech Bluff