Class CompoundAcceptor

java.lang.Object
org.languagetool.rules.nl.CompoundAcceptor

public class CompoundAcceptor extends Object
Accept Dutch compounds that are not accepted by the speller. This code is supposed to accept more words in order to extend the speller, but it's not meant to accept all valid compounds. It works on 2-part compounds only for now.
  • Field Details

    • INSTANCE

      public static final CompoundAcceptor INSTANCE
    • wordListLoader

      protected final CachingWordListLoader wordListLoader
    • noS

      protected final Set<String> noS
    • needsS

      protected final Set<String> needsS
    • geographicalDirections

      protected final Set<String> geographicalDirections
    • alwaysNeedsS

      protected final Set<String> alwaysNeedsS
    • alwaysNeedsHyphen

      protected final Set<String> alwaysNeedsHyphen
    • part1Exceptions

      protected final Set<String> part1Exceptions
    • part2Exceptions

      protected final Set<String> part2Exceptions
    • acronymExceptions

      protected final Set<String> acronymExceptions
  • Constructor Details

    • CompoundAcceptor

      public CompoundAcceptor()
  • Method Details