package de.hsmannheim.iws2014.analyzers;

import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;

import java.io.IOException;

/**
 * Actually transforms each token.
 */
public class PigLatinFilter extends TokenFilter {

    public PigLatinFilter(TokenStream stream) {
        super(stream);
    }

    @Override
    public boolean incrementToken() throws IOException {
        return true;
    }
}

@@ -226,16 +226,39 @@
 ception;
+%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -345,16 +345,65 @@
 lter %7B%0A%0A
+    public static final String VOCALS = %22aeio%22;%0A%0A
     publ
@@ -572,8 +572,9 @@
     %7D%0A%7D%0A
+%0A

add vocals