Skip to content

Instantly share code, notes, and snippets.

@meew0
Created November 14, 2014 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meew0/0509f7d8a2cb3df2089d to your computer and use it in GitHub Desktop.
Save meew0/0509f7d8a2cb3df2089d to your computer and use it in GitHub Desktop.
Whittaker Words Lookup
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