Interface Linguist

All Known Implementing Classes:
EnglishLinguist, SpanishLinguist

public interface Linguist
Author:
Jorge Campins
  • Method Details

    • getArticles

      Set<String> getArticles()
    • getConjunctions

      Set<String> getConjunctions()
    • getPrepositions

      Set<String> getPrepositions()
    • prune

      default String prune(String noun)
      Returns the noun without conjunctions and prepositions.
      Parameters:
      noun - a noun
      Returns:
      the noun without conjunctions and prepositions
    • equalAfterNormalization

      default boolean equalAfterNormalization(String noun, String anotherNoun)
      Tests whether the given nouns produce the same string after pruning them, removing their diacritics and converting them to lowercase.
      Parameters:
      noun - a noun
      anotherNoun - another noun
      Returns:
      true if the given nouns produce the same string after pruning them, removing their diacritics and converting them to lowercase; false otherwise
    • capitalize

      String capitalize(String noun)
    • isPlural

      boolean isPlural(String word)
    • isSingular

      boolean isSingular(String word)
    • pluralOf

      String pluralOf(String word)
    • pluralOfMultiwordExpression

      String pluralOfMultiwordExpression(String mwe)
    • singularOf

      String singularOf(String word)
    • singularOfMultiwordExpression

      String singularOfMultiwordExpression(String mwe)