/** * quick-and-dirty routine for computing morph forms Should be replaced by * something better! * * @param word * @param feature * @param string * @return */ private string getVariant(WordElement word, string feature, string suffix) { if (word.hasFeature(feature)) { return(word.getFeatureAsString(feature)); } else { return(getForm(word.BaseForm, suffix)); } }