[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/wamania/php-stemmer/src/Stemmer/ -> English.php (summary)

(no description)

File Size: 602 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

English:: (15 methods):
  stem()
  step0()
  step1a()
  step1b()
  step1c()
  step2()
  step3()
  step4()
  step5()
  finish()
  exceptionR1()
  exception1()
  exception2()
  isShort()
  searchShortSyllabe()


Class: English  - X-Ref

English Porter 2

stem($word)   X-Ref
{@inheritdoc}


step0()   X-Ref
Step 0
Remove ', 's, 's'


step1a()   X-Ref
No description

step1b()   X-Ref
Step 1b


step1c()   X-Ref
Step 1c: *


step2()   X-Ref
Step 2
Search for the longest among the following suffixes, and, if found and in R1, perform the action indicated.


step3()   X-Ref
Step 3:
Search for the longest among the following suffixes, and, if found and in R1, perform the action indicated.


step4()   X-Ref
Step 4
Search for the longest among the following suffixes, and, if found and in R2, perform the action indicated.


step5()   X-Ref
Step 5: *
Search for the the following suffixes, and, if found, perform the action indicated.


finish()   X-Ref
No description

exceptionR1()   X-Ref
No description

exception1()   X-Ref
1/ Stem certain special words as follows,
2/ If one of the following is found, leave it invariant,


exception2()   X-Ref
Following step 1a, leave the following invariant,


isShort()   X-Ref
A word is called short if it ends in a short syllable, and if R1 is null.
Note : R1 not really null, but the word at this state must be smaller than r1 index

return: boolean

searchShortSyllabe($from, $nbLetters)   X-Ref
Define a short syllable in a word as either (a) a vowel followed by a non-vowel other than w, x or Y and preceded by a non-vowel,
or * (b) a vowel at the beginning of the word followed by a non-vowel.

So rap, trap, entrap end with a short syllable, and ow, on, at are classed as short syllables.
But uproot, bestow, disturb do not end with a short syllable.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer