Class HyphenWordsDictionary


  • public class HyphenWordsDictionary
    extends Object
    • Field Detail

      • hyphenWordsDictionary

        public List<String> hyphenWordsDictionary
    • Constructor Detail

      • HyphenWordsDictionary

        public HyphenWordsDictionary()
    • Method Detail

      • loadHyphenWordsDictionary

        public void loadHyphenWordsDictionary()
        Loads a file with hyphenated compound words in memory Format of the file: Word-withhyphens1\n Word-withhyphens2\n .. Word-withhyphensN\n
      • checkExistsHyphenWord

        public boolean checkExistsHyphenWord​(String hypenWordCandidate)
        Gets the frequency of a word