Class LineExpander

java.lang.Object
org.languagetool.rules.de.LineExpander
All Implemented Interfaces:
LineExpander

public class LineExpander extends Object implements LineExpander
Expand lines according to their suffix, e.g. foo/S becomes [foo, foos].
Since:
3.0
  • Field Details

    • verbFormCache

      private static final com.google.common.cache.LoadingCache<String,String[]> verbFormCache
  • Constructor Details

    • LineExpander

      public LineExpander()
  • Method Details

    • handleLineWithPrefix

      private static List<String> handleLineWithPrefix(String line)
    • expandLine

      public List<String> expandLine(String line)
      Description copied from interface: LineExpander
      Expand a line read from a file into several lines, e.g. to interpret flags like "/S".
      Specified by:
      expandLine in interface LineExpander
    • isLineWithFlag

      private boolean isLineWithFlag(String line)
    • isLineWithVerbPrefix

      private boolean isLineWithVerbPrefix(String line)
    • handleLineWithFlags

      private List<String> handleLineWithFlags(String line)
    • add

      private void add(List<String> result, String word)
    • cleanTagsAndEscapeChars

      private static String cleanTagsAndEscapeChars(String s)