code: private List<String> extractWords(@NotNull String text, Language language) {
  
          List<String> words = textUtils.extractWords(text, language);
  
          List<String> wordList = words.stream()
                                       .flatMap(word -> {
                                           return textUtils.getNormalForms(word.toLowerCase(), language)
                                                           .stream()
                                                           .filter(element -> textUtils.isNormalWord(element, language));
                                       })
                                       .collect(Collectors.toList());
  
          return wordList;
      }
docs: Build String facet from text
  
  @param text Text document
  
  @return Word facets