/*
 * Copyright (C) 2012 Fabian Hirschmann <fabian@hirschm.net>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package com.github.fhirschmann.clozegen.lib.annotators;

import de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.PP;
import org.apache.uima.jcas.tcas.Annotation;

/**
 *
 * @author Fabian Hirschmann <fabian@hirschm.net>
 */
public class PrepositionAnnotator extends GapAnnotator {

    @Override
    public Gap generate(final Annotation subject) {
        Gap gap = new Gap();
        gap.getValidAnswers().add(subject.getCoveredText());
        gap.getInvalidAnswers().add(subject.getCoveredText());

        return gap;
    }

    @Override
    public int getType() {
        return PP.type;
    }
}

@@ -1340,46 +1340,75 @@
 lic 
-int getType() %7B%0A        return PP.type
+String%5B%5D getWordClasses() %7B%0A        return new String%5B%5D %7B%22TO%22, %22P%22%7D
 ;%0A  

make use of the new model