Class TextProcessor.TextResult

  • Enclosing class:
    TextProcessor

    public class TextProcessor.TextResult
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TextResult()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAlphas()
      Return the number of alpha (isAlphabetic()) characters detected.
      TextProcessor.Determination getDetermination()  
      int getDigits()
      Return the number of digit (isDigit()) characters detected in digit-only words.
      int getPunctuation()
      Return the number of punctuation characters detected.
      int getSentenceBreaks()
      Return the number of sentence break characters detected.
      int getSpaces()
      Return the number of space characters (isWhiteSpace()) detected.
      int getWordBreaks()
      Return the number of word break characters detected.
      int getWords()
      Return the number of words detected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextResult

        public TextResult()
    • Method Detail

      • getAlphas

        public int getAlphas()
        Return the number of alpha (isAlphabetic()) characters detected. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of alpha characters detected.
      • getDigits

        public int getDigits()
        Return the number of digit (isDigit()) characters detected in digit-only words. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of digit characters detected.
      • getWords

        public int getWords()
        Return the number of words detected. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of words detected.
      • getSentenceBreaks

        public int getSentenceBreaks()
        Return the number of sentence break characters detected. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of sentence break characters detected.
      • getWordBreaks

        public int getWordBreaks()
        Return the number of word break characters detected. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of word break characters detected.
      • getPunctuation

        public int getPunctuation()
        Return the number of punctuation characters detected. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of punctuation characters detected.
      • getSpaces

        public int getSpaces()
        Return the number of space characters (isWhiteSpace()) detected. Note: This may not be complete if the length of the input is greater than the analysis maximum.
        Returns:
        The number of space characters detected.