[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

(no description)

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

Defines 1 class

French:: (11 methods):
  stem()
  step0()
  step1()
  step2a()
  step2b()
  step3()
  step4()
  step5()
  step6()
  finish()
  rv()


Class: French  - X-Ref


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


step0()   X-Ref
Assume the word is in lower case.
Then put into upper case u or i preceded and followed by a vowel, and y preceded or followed by a vowel.
u after q is also put into upper case. For example,
jouer         ->         joUer
ennuie         ->         ennuIe
yeux         ->         Yeux
quand         ->         qUand


step1()   X-Ref
Step 1
Search for the longest among the following suffixes, and perform the action indicated.

return: integer Next step number

step2a()   X-Ref
Step 2a: Verb suffixes beginning i
In steps 2a and 2b all tests are confined to the RV region.
Search for the longest among the following suffixes and if found, delete if preceded by a non-vowel.
îmes   ît   îtes   i   ie   ies   ir   ira   irai   iraIent   irais   irait   iras   irent   irez   iriez
irions   irons   iront   is   issaIent   issais   issait   issant   issante   issantes   issants   isse
issent   isses   issez   issiez   issions   issons   it
(Note that the non-vowel itself must also be in RV.)


step2b()   X-Ref
Do step 2b if step 2a was done, but failed to remove a suffix.
Step 2b: Other verb suffixes


step3()   X-Ref
Step 3: Replace final Y with i or final ç with c


step4()   X-Ref
Step 4: Residual suffix


step5()   X-Ref
Step 5: Undouble
If the word ends enn, onn, ett, ell or eill, delete the last letter


step6()   X-Ref
Step 6: Un-accent
If the words ends é or è followed by at least one non-vowel, remove the accent from the e.


finish()   X-Ref
And finally:
Turn any remaining I, U and Y letters in the word back into lower case.


rv()   X-Ref
If the word begins with two vowels, RV is the region after the third letter,
otherwise the region after the first vowel not at the beginning of the word,
or the end of the word if these positions cannot be found.
(Exceptionally, par, col or tap, at the begining of a word is also taken to define RV as the region to their right.)




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