Class Etymology

java.lang.Object
org.getalp.dbnary.languages.eng.Etymology

public class Etymology extends Object
Author:
pantaleo
  • Field Details

    • bulletSymbolsList

      public static List<String> bulletSymbolsList
    • definitionSymbolsList

      public static List<String> definitionSymbolsList
    • bulletSymbolsListPattern

      public static Pattern bulletSymbolsListPattern
    • definitionSymbolsListPattern

      public static Pattern definitionSymbolsListPattern
    • definitionSymbolsPattern

      public static Pattern definitionSymbolsPattern
    • compoundSymbolsPattern

      public static Pattern compoundSymbolsPattern
    • bulletSymbolsPattern

      public static Pattern bulletSymbolsPattern
    • tableDerivedLemmasPattern

      public static Pattern tableDerivedLemmasPattern
    • multipleBorrowingSymbolsPattern

      public static Pattern multipleBorrowingSymbolsPattern
    • lang

      public String lang
    • string

      public String string
    • symbols

      public ArrayList<Symbols> symbols
  • Constructor Details

  • Method Details

    • fromTableToSymbols

      public void fromTableToSymbols()
    • fromDefinitionToSymbols

      public void fromDefinitionToSymbols()
    • fromBulletToSymbols

      public void fromBulletToSymbols()
    • toSymbols

      public void toSymbols(List<String> l, Pattern p)
    • parseSense

      public void parseSense()
    • toString

      public static String toString(ArrayList<Symbols> a)
      Parameters:
      a - list of Symbols
      Returns:
      a String (e.g., "FROM LEMMA OR LEMMA") concatenating the property "symbols" of each element of ArrayList$lt;Symbols$gt;
    • findMatch

      public ArrayList<Span> findMatch(ArrayList<Symbols> a, Pattern p)
    • parseMultipleBorrowing

      public void parseMultipleBorrowing()
      This function is used to replace FROM LANGUAGE LEMMA, FROM LANGUAGE LEMMA; FROM LANGUAGE LEMMA AND FROM LANGUAGE LEMMA with a single "LEMMA" Symbol of type mult|lang|lang1|word1|lang2|word2 etc
    • parseCompound

      public void parseCompound()
      This function is used to replace "COMPOUND_OF LEMMA AND LEMMA" and equivalents with a single "LEMMA" Symbol of type compound|lang1|word1|lang2|word2