Created
November 14, 2014 22:12
-
-
Save meew0/0509f7d8a2cb3df2089d to your computer and use it in GitHub Desktop.
Whittaker Words Lookup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package meew0.words; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.select.Elements; | |
public class Main { | |
public static void main(String[] args) { | |
if (args.length < 1) { | |
System.out.println("null.us N 2 1 NOM S M \n" + | |
"nullus, nulli N M [XXXCX] \n" + | |
"no one;\n" + | |
"null.us ADJ 1 3 NOM S M POS \n" + | |
"null.us ADJ 1 3 VOC S M POS \n" + | |
"nullus, nulla, nullum (gen -ius) ADJ [XXXAX] \n" + | |
"no, none, not any;\n" + | |
"\n"); | |
} | |
for(String word : args) { | |
try { | |
Document doc = Jsoup.connect("http://www.archives.nd.edu/cgi-bin/wordz.pl?keyword=" + word) | |
.get(); | |
Elements thing = doc.select("pre"); | |
System.out.println(thing.get(0).text()); | |
} catch (Exception e) { | |
System.out.println("err.or V 1 1 PRES PASSIVE IND 1 S \n" + | |
"erro, errare, erravi, erratus V [XXXBX] \n" + | |
"wander, go astray; make a mistake, err; vacillate;\n" + | |
"error N 3 1 NOM S M \n" + | |
"error N 3 1 VOC S M \n" + | |
"error, erroris N M [XXXCX] \n" + | |
"wandering; error; winding, maze; uncertainty; deception;\n"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment