Finished translating python code into java in VerbTool.java.