chalk.lang.eng

PorterStemmer

class PorterStemmer extends AnyRef

Porter stemmer in Scala. The original paper is in

Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, no. 3, pp 130-137,

See also http://www.tartarus.org/~martin/PorterStemmer

A few methods were borrowed from the existing Java port from the above page.

This version is adapted from the original by Ken Faulkner.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PorterStemmer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PorterStemmer()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def add(word: String): Unit

  7. def add(ch: Char): Unit

  8. def apply(token: String): String

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. var b: String

  11. def calcM(s: String): Int

    m() measures the number of consonant sequences between 0 and j.

    m() measures the number of consonant sequences between 0 and j. if c is a consonant sequence and v a vowel sequence, and <..> indicates arbitrary presence,

    <c><v> gives 0 <c>vc<v> gives 1 <c>vcvc<v> gives 2 <c>vcvcvc<v> gives 3 ....

    I think this can be recoded far more neatly.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def cons(i: Int): Boolean

  14. def cvc(s: String): Boolean

    cvc(i) is true <=> i-2,i-1,i has the form consonant - vowel - consonant and also if the second c is not w,x or y.

    cvc(i) is true <=> i-2,i-1,i has the form consonant - vowel - consonant and also if the second c is not w,x or y. this is used when trying to restore an e at the end of a short word. e.g.

    cav(e), lov(e), hop(e), crim(e), but snow, box, tray.

  15. def doublec(): Boolean

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def processSubList(l: List[(String, String)], checker: (Int) ⇒ Boolean): Boolean

  26. def replacer(orig: String, replace: String, checker: (Int) ⇒ Boolean): Boolean

  27. def step1(): Unit

  28. def step2: Boolean

  29. def step3: Boolean

  30. def step4: Unit

  31. def step5a: AnyVal

  32. def step5b: Unit

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. def vowelInStem(s: String): Boolean

  36. val vowels: Set[Char]

  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. val wxy: Set[Char]

Inherited from AnyRef

Inherited from Any

Ungrouped