public class GoogleTranslate extends Object
Constructor and Description |
---|
GoogleTranslate() |
Modifier and Type | Method and Description |
---|---|
String[] |
definitions(String word,
String pos)
Returns all definitions for the text/pos
|
String[] |
examples(String text)
Returns all examples for the text
|
String[] |
glosses(String word,
String pos)
Returns all glosses for the text/pos
|
static void |
main(String[] args) |
String[] |
seeAlso(String text)
Returns all see also for the text
|
String[] |
synonyms(String word,
String pos)
Returns all synonyms for the text/pos
|
String |
translate(String text,
String fromLang,
String toLang)
Returns the best translation for the text
|
String[] |
translations(String text,
String fromLang,
String toLang)
Returns all translations for the text in ranked order by part-of-speech
|
String[] |
translations(String text,
String fromLang,
String toLang,
String pos)
Returns all translations for the text in ranked order for the given
part-of-speech
|
public static String URL
public String[] translations(String text, String fromLang, String toLang, String pos)
public String[] definitions(String word, String pos)
public String[] translations(String text, String fromLang, String toLang)
public String translate(String text, String fromLang, String toLang)
public static void main(String[] args)
Copyright © 2015. All rights reserved.