code: private List<AnalyzedToken> getSubstantivatedForms(String word, List<String> sentenceTokens, int pos) {
      if (word.endsWith("er")) {
        List<TaggedWord> lowerCaseTags = getWordTagger().tag(word.toLowerCase());
        // do not add tag words whose lower case variant is an adverb (e.g, "Früher") to avoid false negatives for DE_CASE
        if (lowerCaseTags.stream().anyMatch(t -> t.getPosTag().startsWith("ADV"))) {
          return null;
        }
        int idx = sentenceTokens.indexOf(word);
        // is followed by an uppercase word? If 'yes', the word is probably not substantivated
        while (++idx < sentenceTokens.size()) {
          String nextWord = sentenceTokens.get(idx);
          if (StringUtils.isWhitespace(nextWord)) {
            continue;
          }
          if (nextWord.length() > 0 && (Character.isUpperCase(nextWord.charAt(0)) || "als".equals(nextWord))) {
            return null;
          }
          break;
        }
        String femaleForm = word.substring(0, word.length()-1);
        List<TaggedWord> taggedFemaleForm = getWordTagger().tag(femaleForm);
        boolean isSubstantivatedForm = taggedFemaleForm.stream().anyMatch(t -> t.getPosTag().equals("SUB:NOM:SIN:FEM:ADJ"));
        if (isSubstantivatedForm) {
          List<AnalyzedToken> list = new ArrayList<>();
          list.add(new AnalyzedToken(word, "SUB:NOM:SIN:MAS:ADJ", word));
          list.add(new AnalyzedToken(word, "SUB:GEN:PLU:MAS:ADJ", word));
          //list.add(new AnalyzedToken(word, "SUB:NOM:SIN:MAS", word));
          return list;
        }
      }
      return null;
    }
docs: /*
  Tag substantivated adjectives and participles, which are currently tagged not tagged correctly
  (e.g., "Verletzter" in "Ein Verletzter kam ins Krankenhaus" needs to be tagged as "SUB:NOM:SIN:MAS")
  @param word to be checked