* @return The ISO-639 code for the language
	 * @throws Exception if it cannot complete the request
	 */
	public static String detectLanguage(String text) throws Exception{
		String encoded = URLEncoder.encode(text, "UTF-8"); //Encodes the string
		URL url = new URL(GOOGLE_TRANSLATE_URL + encoded); //Generates URL
		String rawData = urlToText(url);//Gets text from Google
		return findLanguage(rawData);
	}