public static List<Result> detect(final String text) throws APIError {
HashMap<String, String> params = new HashMap<String, String>();
params.put("q", text);
DetectResponse response = getClient().execute("detect", params,
DetectResponse.class);
return response.data.detections;
}