code: private List<String> getCorrectWords(List<String> wordsOrPhrases) {
      List<String> result = new ArrayList<>();
      for (String wordOrPhrase : wordsOrPhrases) {
        // this might be a phrase like "aufgrund dessen", so it needs to be split: 
        String[] words = tokenizeText(wordOrPhrase);
        boolean wordIsOkay = true;
        for (String word : words) {
          if (hunspellDict.misspelled(word)) {
            wordIsOkay = false;
            break;
          }
        }
        if (wordIsOkay) {
          result.add(wordOrPhrase);
        }
      }
      return result;
    }
docs: compound words with parts that are correct but the compound is not correct (e.g. "Arbeit + Amt = Arbeitamt"):