package tagging;

/**
 * Simple java bean to contain tagged content
 * 
 * @author timdolck
 *
 */
public class Word {
	public String word;
	public String lemma;
	public String pos;
	public String neTag;
	public String neTypeTag;
	//Might be continued
	
	public Word(String word, String lemma, String pos, String neTag, String neTypeTag){
		this.word = word;
		this.lemma = lemma;
		this.pos = pos;
		this.neTag = neTag;
		this.neTypeTag = neTypeTag;
	}

	@Override
	public String toString() {
		return word + "\t" + "\t" + pos + "\t" + neTag + "\t" + neTypeTag;
	}
	
	@Override
	public boolean equals (Object o){
		try{
			Word w = (Word) o;
			return this.lemma.equalsIgnoreCase(w.lemma);
		} catch (Exception e){
			return false;
		}
	}

	@Override
	public int hashCode() {
		return this.lemma.hashCode();
	}

}

@@ -350,24 +350,214 @@
 d = word;%0A%09%09
+// Manual rule%0A%09%09if (lemma.endsWith(%22s%22) && !lemma.isEmpty() && Character.isUpperCase(lemma.charAt(0)))%0A%09%09%09this.lemma = lemma.toLowerCase().substring(0,lemma.length()-1);%0A%09%09else%0A            
 this.lemma =

add basic rules for lemmatization