Skip to content

Apache Lucene open-source search software

upgrade snowball to 26db1ab9adbf437f37a6facd3ee2aad1da9eba03 (#13209)

Robert Muird54663ad763c
diff --git a/gradle/generation/snowball.gradle b/gradle/generation/snowball.gradle
index aa1e5fbccdf..a776390d361 100644
--- a/gradle/generation/snowball.gradle
+++ b/gradle/generation/snowball.gradle
@@ -24,11 +24,11 @@ apply plugin: "de.undercouch.download"
configure(project(":lucene:analysis:common")) {
ext {
// git commit hash of source code https://github.com/snowballstem/snowball/
- snowballStemmerCommit = "d8cf01ddf37a9c74a78ada44531c08f7952f2a39"
+ snowballStemmerCommit = "26db1ab9adbf437f37a6facd3ee2aad1da9eba03"
// git commit hash of stopwords https://github.com/snowballstem/snowball-website
- snowballWebsiteCommit = "ee7cee9bc52f22802f21e94f42d887b0dfa7d2a8"
+ snowballWebsiteCommit = "424fd1f75044160bb4a92f1daf08cce618459374"
// git commit hash of test data https://github.com/snowballstem/snowball-data
- snowballDataCommit = "35461050d8f81e8aeac26e38f8a8dbf1afb82721"
+ snowballDataCommit = "f08c4d63b9bc223aa7a1e706f4e8db8dd4ced28a"
snowballWorkDir = file("${buildDir}/snowball")
diff --git a/gradle/generation/snowball/snowball.patch b/gradle/generation/snowball/snowball.patch
index c72722d1e4b..fc6db142968 100644
--- a/gradle/generation/snowball/snowball.patch
+++ b/gradle/generation/snowball/snowball.patch
@@ -1,574 +1,3 @@
-diff --git a/algorithms/armenian.sbl b/algorithms/armenian.sbl
-new file mode 100644
-index 0000000..3a9a926
---- /dev/null
-+++ b/algorithms/armenian.sbl
-@@ -0,0 +1,301 @@
-+stringescapes {}
-+
-+stringdef a '{U+0561}' // 531
-+stringdef b '{U+0562}' // 532
-+stringdef g '{U+0563}' // 533
-+stringdef d '{U+0564}' // 534
-+stringdef ye '{U+0565}' // 535
-+stringdef z '{U+0566}' // 536
-+stringdef e '{U+0567}' // 537
-+stringdef y '{U+0568}' // 538
-+stringdef dt '{U+0569}' // 539
-+stringdef zh '{U+056A}' // 53A
-+stringdef i '{U+056B}' // 53B
-+stringdef l '{U+056C}' // 53C
-+stringdef kh '{U+056D}' // 53D
-+stringdef ts '{U+056E}' // 53E
-+stringdef k '{U+056F}' // 53F
-+stringdef h '{U+0570}' // 540
-+stringdef dz '{U+0571}' // 541
-+stringdef gh '{U+0572}' // 542
-+stringdef djch '{U+0573}' // 543
-+stringdef m '{U+0574}' // 544
-+stringdef j '{U+0575}' // 545
-+stringdef n '{U+0576}' // 546
-+stringdef sh '{U+0577}' // 547
-+stringdef vo '{U+0578}' // 548
-+stringdef ch '{U+0579}' // 549
-+stringdef p '{U+057A}' // 54A
-+stringdef dj '{U+057B}' // 54B
-+stringdef r '{U+057C}' // 54C
-+stringdef s '{U+057D}' // 54D
-+stringdef v '{U+057E}' // 54E
-+stringdef t '{U+057F}' // 54F
-+stringdef r' '{U+0580}' // 550
-+stringdef c '{U+0581}' // 551
-+stringdef u '{U+0582}' // 552 //vjun
-+stringdef bp '{U+0583}' // 553
-+stringdef q '{U+0584}' // 554
-+stringdef ev '{U+0587}'
-+stringdef o '{U+0585}' // 555
-+stringdef f '{U+0586}' // 556
-+
-+routines ( mark_regions R2
-+ adjective
-+ verb
-+ noun
-+ ending
-+)
-+
-+externals ( stem )
-+
-+integers ( pV p2 )
-+
-+groupings ( v )
-+
-+define v '{a}{e}{i}{o}{u}{ye}{vo}{y}'
-+
-+define mark_regions as (
-+
-+ $pV = limit
-+ $p2 = limit
-+ do (
-+ gopast v setmark pV gopast non-v
-+ gopast v gopast non-v setmark p2
-+ )
-+)
-+
-+backwardmode (
-+
-+ define R2 as $p2 <= cursor
-+
-+ define adjective as (
-+ [substring] among (
-+ '{b}{a}{r'}'
-+ '{p}{ye}{s}'
-+ '{vo}{r'}{e}{n}'
-+ '{vo}{v}{i}{n}'
-+ '{a}{k}{i}'
-+ '{l}{a}{j}{n}'
-+ '{r'}{vo}{r'}{d}'
-+ '{ye}{r'}{vo}{r'}{d}'
-+ '{a}{k}{a}{n}'
-+ '{a}{l}{i}'
-+ '{k}{vo}{t}'
-+ '{ye}{k}{ye}{n}'
-+ '{vo}{r'}{a}{k}'
-+ '{ye}{gh}'
-+ '{v}{vo}{u}{n}'
-+ '{ye}{r'}{ye}{n}'
-+ '{a}{r'}{a}{n}'
-+ '{ye}{n}'
-+ '{a}{v}{ye}{t}'
-+ '{g}{i}{n}'
-+ '{i}{v}'
-+ '{a}{t}'
-+ '{i}{n}'
-+
-+ (delete)
-+ )
-+ )
-+
-+ define verb as (
-+ [substring] among (
-+ '{vo}{u}{m}'
-+ '{v}{vo}{u}{m}'
-+ '{a}{l}{vo}{u}'
-+ '{ye}{l}{vo}{u}'
-+ '{v}{ye}{l}'
-+ '{a}{n}{a}{l}'
-+ '{ye}{l}{vo}{u}{c}'
-+ '{a}{l}{vo}{u}{c}'
-+ '{y}{a}{l}'
-+ '{y}{ye}{l}'
-+ '{a}{l}{vo}{v}'
-+ '{ye}{l}{vo}{v}'
-+ '{a}{l}{i}{s}'
-+ '{ye}{l}{i}{s}'
-+ '{ye}{n}{a}{l}'
-+ '{a}{c}{n}{a}{l}'
-+ '{ye}{c}{n}{ye}{l}'
-+ '{c}{n}{ye}{l}'
-+ '{n}{ye}{l}'
-+ '{a}{t}{ye}{l}'
-+ '{vo}{t}{ye}{l}'
-+ '{k}{vo}{t}{ye}{l}'
-+ '{t}{ye}{l}'
-+ '{v}{a}{ts}'
-+ '{ye}{c}{v}{ye}{l}'
-+ '{a}{c}{v}{ye}{l}'
-+ '{ye}{c}{i}{r'}'
-+ '{a}{c}{i}{r'}'
-+ '{ye}{c}{i}{n}{q}'
-+ '{a}{c}{i}{n}{q}'
-+ '{v}{ye}{c}{i}{r'}'
-+ '{v}{ye}{c}{i}{n}{q}'
-+ '{v}{ye}{c}{i}{q}'
-+ '{v}{ye}{c}{i}{n}'
-+ '{a}{c}{r'}{i}{r'}'
-+ '{a}{c}{r'}{ye}{c}'
-+ '{a}{c}{r'}{i}{n}{q}'
-+ '{a}{c}{r'}{i}{q}'
-+ '{a}{c}{r'}{i}{n}'
-+ '{ye}{c}{i}{q}'
-+ '{a}{c}{i}{q}'
-+ '{ye}{c}{i}{n}'
-+ '{a}{c}{i}{n}'
-+ '{a}{c}{a}{r'}'
-+ '{a}{c}{a}{v}'
-+ '{a}{c}{a}{n}{q}'
-+ '{a}{c}{a}{q}'
-+ '{a}{c}{a}{n}'
-+ '{v}{ye}{c}{i}'
-+ '{a}{c}{r'}{i}'
-+ '{ye}{c}{a}{r'}'
-+ '{ye}{c}{a}{v}'
-+ '{c}{a}{n}{q}'
-+ '{c}{a}{q}'
-+ '{c}{a}{n}'
-+ '{a}{c}{a}'
-+ '{a}{c}{i}'
-+ '{ye}{c}{a}'
-+ '{ch}{ye}{l}'
-+ '{ye}{c}{i}'
-+ '{a}{r'}'
-+ '{a}{v}'
-+ '{a}{n}{q}'
-+ '{a}{q}'
-+ '{a}{n}'
-+ '{a}{l}'
-+ '{ye}{l}'
-+ '{ye}{c}'
-+ '{a}{c}'
-+ '{v}{ye}'
-+ '{a}'
-+
-+ (delete)
-+ )
-+ )
-+
-+ define noun as (
-+ [substring] among (
-+ '{a}{ts}{vo}'
-+ '{a}{n}{a}{k}'
-+ '{a}{n}{o}{c}'
-+ '{a}{r'}{a}{n}'
-+ '{a}{r'}{q}'
-+ '{p}{a}{n}'
-+ '{s}{t}{a}{n}'
-+ '{ye}{gh}{e}{n}'
-+ '{ye}{n}{q}'
-+ '{i}{k}'
-+ '{i}{ch}'
-+ '{i}{q}'
-+ '{m}{vo}{u}{n}{q}'
-+ '{j}{a}{k}'
-+ '{j}{vo}{u}{n}'
-+ '{vo}{n}{q}'
-+ '{vo}{r'}{d}'
-+ '{vo}{c}'
-+ '{ch}{ye}{q}'
-+ '{v}{a}{ts}{q}'
-+ '{v}{vo}{r'}'
-+ '{a}{v}{vo}{r'}'
-+ '{vo}{u}{dt}{j}{vo}{u}{n}'
-+ '{vo}{u}{k}'
-+ '{vo}{u}{h}{i}'
-+ '{vo}{u}{j}{dt}'
-+ '{vo}{u}{j}{q}'
-+ '{vo}{u}{s}{t}'
-+ '{vo}{u}{s}'
-+ '{c}{i}'
-+ '{a}{l}{i}{q}'
-+ '{a}{n}{i}{q}'
-+ '{i}{l}'
-+ '{i}{ch}{q}'
-+ '{vo}{u}{n}{q}'
-+ '{g}{a}{r'}'
-+ '{vo}{u}'
-+ '{a}{k}'
-+ '{a}{n}'
-+ '{q}'
-+
-+ (delete)
-+ )
-+ )
-+
-+ define ending as (
-+ [substring] R2 among (
-+ '{n}{ye}{r'}{y}'
-+ '{n}{ye}{r'}{n}'
-+ '{n}{ye}{r'}{i}'
-+ '{n}{ye}{r'}{d}'
-+ '{ye}{r'}{i}{c}'
-+ '{n}{ye}{r'}{i}{c}'
-+ '{ye}{r'}{i}'
-+ '{ye}{r'}{d}'
-+ '{ye}{r'}{n}'
-+ '{ye}{r'}{y}'
-+ '{n}{ye}{r'}{i}{n}'
-+ '{vo}{u}{dt}{j}{a}{n}{n}'
-+ '{vo}{u}{dt}{j}{a}{n}{y}'
-+ '{vo}{u}{dt}{j}{a}{n}{s}'
-+ '{vo}{u}{dt}{j}{a}{n}{d}'
-+ '{vo}{u}{dt}{j}{a}{n}'
-+ '{ye}{r'}{i}{n}'
-+ '{i}{n}'
-+ '{s}{a}'
-+ '{vo}{dj}'
-+ '{i}{c}'
-+ '{ye}{r'}{vo}{v}'
-+ '{n}{ye}{r'}{vo}{v}'
-+ '{ye}{r'}{vo}{u}{m}'
-+ '{n}{ye}{r'}{vo}{u}{m}'
-+ '{vo}{u}{n}'
-+ '{vo}{u}{d}'
-+ '{v}{a}{n}{s}'
-+ '{v}{a}{n}{y}'
-+ '{v}{a}{n}{d}'
-+ '{a}{n}{y}'
-+ '{a}{n}{d}'
-+ '{v}{a}{n}'
-+ '{vo}{dj}{y}'
-+ '{vo}{dj}{s}'
-+ '{vo}{dj}{d}'
-+ '{vo}{c}'
-+ '{vo}{u}{c}'
-+ '{vo}{dj}{i}{c}'
-+ '{c}{i}{c}'
-+ '{v}{i}{c}'
-+ '{v}{i}'
-+ '{v}{vo}{v}'
-+ '{vo}{v}'
-+ '{a}{n}{vo}{v}'
-+ '{a}{n}{vo}{u}{m}'
-+ '{v}{a}{n}{i}{c}'
-+ '{a}{m}{b}'
-+ '{a}{n}'
-+ '{n}{ye}{r'}'
-+ '{ye}{r'}'
-+ '{v}{a}'
-+ '{y}'
-+ '{n}'
-+ '{d}'
-+ '{c}'
-+ '{i}'
-+
-+ (delete)
-+ )
-+ )
-+)
-+
-+define stem as (
-+
-+ do mark_regions
-+ backwards setlimit tomark pV for (
-+ do ending
-+ do verb
-+ do adjective
-+ do noun
-+ )
-+)
-diff --git a/algorithms/estonian.sbl b/algorithms/estonian.sbl
-new file mode 100644
-index 0000000..0cc2b60
---- /dev/null
-+++ b/algorithms/estonian.sbl
-@@ -0,0 +1,258 @@
-+/* Estonian stemmer version 1.3
-+
-+Made by Linda Freienthal in January 2019.
-+
-+*/
-+
-+routines (
-+ mark_regions
-+ LONGV
-+ special_noun_endings
-+ case_ending
-+ emphasis
-+ plural_three_first_cases
-+ remove_double_kpt
-+ double
-+ undouble
-+ i_plural
-+ degrees
-+ substantive
-+ verb_exceptions
-+ verb
-+ nu
-+)
-+
-+stringescapes {}
-+stringdef a" '{U+00E4}' //a-umlaut ä
-+stringdef o" '{U+00F6}' //o-umlaut ö
-+stringdef o' '{U+00F5}' //o with tilde õ
-+stringdef u" '{U+00FC}' //u-umlaut ü
-+stringdef s" '{U+0161}' //s with caron š
-+stringdef z" '{U+017E}' //z with caron ž
-+
-+externals ( stem )
-+booleans ( is_verb )
-+integers ( p1 )
-+groupings ( V1 RV KI GI)
-+
-+define V1 'aeiou{o'}{a"}{o"}{u"}'
-+define RV 'aeiuo'
-+define KI 'kptgbdshf{s"}z{z"}'
-+define GI 'cjlmnqrvwxaeiou{o'}{a"}{o"}{u"}'
-+define mark_regions as (
-+
-+ $p1 = limit
-+
-+ goto V1 gopast non-V1 setmark p1
-+)
-+
-+
-+backwardmode (
-+
-+ define emphasis as (
-+ setlimit tomark p1 for ([substring])
-+ test hop 4 //kingi -> kingi
-+ among(
-+ 'gi' ((GI and not LONGV) delete) //jooksemegi -> jookseme, bioloogi -> bioloogi
-+ 'ki' (KI delete) //kookki -> kook
-+ )
-+
-+ )
-+
-+ define verb as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'nuksin' 'nuksime' 'nuksid' 'nuksite' (delete) //seleta-nuksite
-+ 'ksin' 'ksid' 'ksime' 'ksite' (delete) //personal conditional: rõõmusta-ksin
-+ 'mata' (delete)
-+ 'takse' 'dakse' (delete) //impersonal: laul-dakse, luba-takse
-+ 'taks' 'daks' (delete) //impersonal conditional: laul-daks, saade-taks
-+ 'akse' (<-'a') //impersonal: tulla-kse, süüa-kse, teha-kse, püüt-akse, leita-kse
-+ 'sime' (delete) //pl1pst: saat-sime
-+ 'site' (delete) //pl2pst: saat-site
-+ 'sin' (delete) //sg1pst: laul-sin, saat-sin
-+ 'me' (V1 delete) //pl1prs: laula-me, tule-me
-+ 'da' (V1 delete) //da-infinitive: luba-da
-+ 'n' (V1 delete) //sg1prs: kirjuta-n
-+ 'b' (V1 delete) //sg3prs: laula-b
-+ )
-+ set is_verb
-+ )
-+
-+ define LONGV as
-+ among('aa' 'ee' 'ii' 'oo' 'uu' '{a"}{a"}' '{o"}{o"}' '{u"}{u"}' '{o'}{o'}')
-+
-+ define i_plural as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'i' (RV) //raamatui -> raamatu, lapsikui -> lapsiku
-+ )
-+ delete
-+ )
-+
-+ define special_noun_endings as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'lasse' (<- 'lase') //teadlasse -> teadlase
-+ 'last' (<- 'lase') //teadlast -> teadlase
-+ 'lane' (<- 'lase') //teadlane -> teadlase
-+ 'lasi'(<- 'lase') //teadlasi -> teadlase
-+ 'misse' (<- 'mise') //tegemisse -> tegemise
-+ 'mist' (<- 'mise') //kasutamist -> kasutamise
-+ 'mine' (<- 'mise') //tegemine -> tegemise
-+ 'misi' (<- 'mise') //kasutamisi -> kasutamise
-+ 'lisse' (<- 'lise') //rohelisse -> rohelise
-+ 'list' (<- 'lise') //tavalist -> tavalise
-+ 'line' (<- 'lise') //roheline -> rohelise
-+ 'lisi' (<- 'lise') //tavalisi -> tavalise
-+ )
-+
-+ )
-+ define case_ending as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'sse' (RV or LONGV) //illative: saapa-sse, tegemisse -> tegemisse
-+ 'st' (RV or LONGV) //elative: saapa-st, rohelist -> rohelist
-+ 'le' (RV or LONGV) //allative: raamatu-le
-+ 'lt' (RV or LONGV) //ablative: raamatu-lt
-+ 'ga' (RV or LONGV) //komitatiive: õpetaja-ga
-+ 'ks' (RV or LONGV) //translative: õpetaja-ks
-+ 'ta' (RV or LONGV) //abessive and da-infinitive: õpetaja-ta and hüpa-ta
-+ 't' //partitiiv, raamatu-t and kapsas-t
-+ 's' (RV or LONGV)//inessive and sg3pst: raamatu-s and sõiti-s
-+ 'l' (RV or LONGV) //adessive: raamatu-l and kapsa-l.
-+ )
-+ delete
-+ )
-+
-+
-+ define plural_three_first_cases as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'ikkude' (<-'iku') //plural genitive: õnnelikkude -> õnneliku
-+ 'ikke' (<-'iku') //plural partitive: rahulikke -> rahuliku
-+ 'ike' (<-'iku') //plural genitive: ohtlike -> ohtliku
-+ 'sid' (not LONGV delete) //plural partitive and sg2pst and pl3pst: auto-sid and laul-sid (exludes plural nominative with words like gaasid, roosid)
-+ 'te' ((test hop 4 (('mis' <- 'e') or ('las' <- 'e') or ('lis' <- 'e') or (not 't' delete))) or (not 't' <-'t')) //plural genitive and pl2: ministri-te, olulis-te and saada-te, laula-te; also torte -> tort (if not in compound word) and kokkuvõtte -> kokkuvõte and roheliste -> rohelise, tegemiste -> tegemise, teadlaste -> teadlase
-+ 'de' ((RV or LONGV) delete) //plural genitive: lauda-de
-+ 'd' ((RV or LONGV) delete) //plural nominative: voodid -> voodi, rattaid -> rattai, lapsikuid -> lapsiku
-+ )
-+ )
-+
-+ define double as (
-+ test among('kk' 'tt' 'pp')
-+ )
-+
-+ define undouble as (
-+ next [hop 1] delete
-+ )
-+
-+ define nu as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'nu' //haka-nu(-te-ga)
-+ 'tu' //luba-tu(-d)
-+ 'du' //laul-du(-te-st)
-+ 'va' //laul-va(-te-le)
-+ )
-+ delete
-+ )
-+
-+ define remove_double_kpt as (// undouble kpt consonant if 'C1C1V': mõtte(-le) -> mõte, hakka(-n) -> haka, haka(-nu-d) -> haka
-+ (V1) (double)
-+ and undouble
-+ )
-+
-+ define degrees as (
-+ setlimit tomark p1 for ([substring])
-+ among(
-+ 'mai' (RV delete) //heleda-mai(-le)
-+ 'ma' (delete) //tugeva-ma(-le) and ma-infinitive: sõit-ma
-+ 'm' (RV delete) //kauge-i-m, rõõmsa-m
-+ )
-+ )
-+
-+ define substantive as (
-+ do special_noun_endings
-+ do case_ending
-+ do plural_three_first_cases
-+ do degrees
-+ do i_plural
-+ do nu
-+ )
-+)
-+
-+
-+define verb_exceptions as (
-+ [substring] atlimit
-+ among(
-+ 'joon' 'jood' 'joob' 'joote' 'joome' 'joovad' (<-'joo')
-+ 'j{o'}in' 'j{o'}id' 'j{o'}i' 'j{o'}ime' 'j{o'}ite' (<-'joo')
-+ 'joomata' 'juuakse' 'joodakse' 'juua' 'jooma' (<- 'joo')
-+ 'saan' 'saad' 'saab' 'saate' 'saame' 'saavad' (<-'saa')
-+ 'saaksin' 'saaksid' 'saaks' 'saaksite' 'saaksime' (<-'saa')
-+ 'sain' 'said' 'sai' 'saite' 'saime' (<-'saa')
-+ 'saamata' 'saadakse' 'saadi' 'saama' 'saada' (<-'saa')
-+ 'viin' 'viid' 'viib' 'viite' 'viime' 'viivad' (<-'viima')
-+ 'viiksin' 'viiksid' 'viiks' 'viiksite' 'viiksime' (<-'viima')
-+ 'viisin' 'viisite' 'viisime' (<-'viima')
-+ 'viimata' 'viiakse' 'viidi' 'viima' 'viia' (<-'viima')
-+ 'keen' 'keeb' 'keed' 'kees' 'keeme' 'keete' 'keevad' (<-'keesi')
-+ 'keeksin' 'keeks' 'keeksid' 'keeksime' 'keeksite' (<-'keesi')
-+ 'keemata' 'keema' 'keeta' 'keedakse' (<-'keesi')
-+ 'l{o"}{o"}n' 'l{o"}{o"}d' 'l{o"}{o"}b' 'l{o"}{o"}me' 'l{o"}{o"}te' 'l{o"}{o"}vad' (<-'l{o"}{o"}')
-+ 'l{o"}{o"}ksin' 'l{o"}{o"}ksid' 'l{o"}{o"}ks' 'l{o"}{o"}ksime' 'l{o"}{o"}ksite' (<-'l{o"}{o"}')
-+ 'l{o"}{o"}mata' 'l{u"}{u"}akse' 'l{o"}{o"}dakse' 'l{o"}{o"}di' 'l{o"}{o"}ma' 'l{u"}{u"}a' (<-'l{o"}{o"}')
-+ 'l{o'}in' 'l{o'}id' 'l{o'}i' 'l{o'}ime' 'l{o'}ite' (<-'l{o"}i') //looma-lõi, lööma-lõi
-+ 'loon' 'lood' 'loob' 'loome' 'loote' 'loovad' (<-'loo')
-+ 'looksin' 'looksid' 'looks' 'looksime' 'looksite' (<-'loo')
-+ 'loomata' 'luuakse' 'loodi' 'luua' 'looma' (<-'loo')
-+ 'k{a"}in' 'k{a"}ib' 'k{a"}id' 'k{a"}is' 'k{a"}ime' 'k{a"}ite' 'k{a"}ivad' (<-'k{a"}isi')
-+ 'k{a"}iksin' 'k{a"}iks' 'k{a"}iksid' 'k{a"}iksime' 'k{a"}iksite' (<-'k{a"}isi')
-+ 'k{a"}imata' 'k{a"}iakse' 'k{a"}idi' 'k{a"}ia' 'k{a"}ima' (<-'k{a"}isi')
-+ 's{o"}{o"}n' 's{o"}{o"}b' 's{o"}{o"}d' 's{o"}{o"}me' 's{o"}{o"}te' 's{o"}{o"}vad' (<-'s{o"}{o"}')
-+ 's{o"}{o"}ksin' 's{o"}{o"}ks' 's{o"}{o"}ksid' 's{o"}{o"}ksime' 's{o"}{o"}ksite' (<-'s{o"}{o"}')
-+ 's{o'}in' 's{o'}i' 's{o'}id' 's{o'}ime' 's{o'}ite' (<-'s{o"}{o"}')
-+ 's{o"}{o"}mata' 's{u"}{u"}akse' 's{o"}{o"}dakse' 's{o"}{o"}di' 's{o"}{o"}ma' 's{u"}{u"}a' (<-'s{o"}{o"}')
-+ 'toon' 'tood' 'toob' 'toote' 'toome' 'toovad' (<-'too')
-+ 'tooksin' 'tooksid' 'tooks' 'tooksite' 'tooksime' (<-'too')
-+ 't{o'}in' 't{o'}id' 't{o'}i' 't{o'}ime' 't{o'}ite' (<-'too')
-+ 'toomata' 'tuuakse' 'toodi' 'tooma' 'tuua' (<-'too')
-+ 'v{o'}in' 'v{o'}id' 'v{o'}ib' 'v{o'}ime' 'v{o'}is' 'v{o'}ite' 'v{o'}ivad' (<-'v{o'}isi')
-+ 'v{o'}iksin' 'v{o'}iksid' 'v{o'}iks' 'v{o'}iksime' 'v{o'}iksite' (<-'v{o'}isi')
-+ 'v{o'}imata' 'v{o'}idakse' 'v{o'}idi' 'v{o'}ida' 'v{o'}ima' (<-'v{o'}isi')
-+ 'j{a"}{a"}n' 'j{a"}{a"}d' 'j{a"}{a"}b' 'j{a"}{a"}me' 'j{a"}{a"}te' 'j{a"}{a"}vad' (<-'j{a"}{a"}ma')
-+ 'j{a"}{a"}ksin' 'j{a"}{a"}ksid' 'j{a"}{a"}ks' 'j{a"}{a"}ksime' 'j{a"}{a"}ksite' (<-'j{a"}{a"}ma')
-+ 'j{a"}ime' 'j{a"}ite' 'j{a"}in' 'j{a"}id' 'j{a"}i' (<-'j{a"}{a"}ma')
-+ 'j{a"}{a"}mata' 'j{a"}{a"}dakse' 'j{a"}{a"}da' 'j{a"}{a"}ma' 'j{a"}{a"}di' (<-'j{a"}{a"}ma')
-+ 'm{u"}{u"}n' 'm{u"}{u"}d' 'm{u"}{u"}b' 'm{u"}{u"}s' 'm{u"}{u"}me' 'm{u"}{u"}te' 'm{u"}{u"}vad' (<-'m{u"}{u"}si')
-+ 'm{u"}{u"}ksin' 'm{u"}{u"}ksid' 'm{u"}{u"}ks' 'm{u"}{u"}ksime' 'm{u"}{u"}ksite' (<-'m{u"}{u"}si')
-+ 'm{u"}{u"}mata' 'm{u"}{u"}akse' 'm{u"}{u"}di' 'm{u"}{u"}a' 'm{u"}{u"}ma' (<-'m{u"}{u"}si')
-+ 'loeb' 'loen' 'loed' 'loeme' 'loete' 'loevad' (<- 'luge')
-+ 'loeks' 'loeksin' 'loeksid' 'loeksime' 'loeksite' (<- 'luge')
-+ 'p{o'}en' 'p{o'}eb' 'p{o'}ed' 'p{o'}eme' 'p{o'}ete' 'p{o'}evad' (<- 'p{o'}de')
-+ 'p{o'}eksin' 'p{o'}eks' 'p{o'}eksid' 'p{o'}eksime' 'p{o'}eksite' (<- 'p{o'}de')
-+ 'laon' 'laob' 'laod' 'laome' 'laote' 'laovad' (<- 'ladu')
-+ 'laoksin' 'laoks' 'laoksid' 'laoksime' 'laoksite' (<- 'ladu')
-+ 'teeksin' 'teeks' 'teeksid' 'teeksime' 'teeksite' (<- 'tegi')
-+ 'teen' 'teeb' 'teed' 'teeme' 'teete' 'teevad' (<- 'tegi')
-+ 'tegemata' 'tehakse' 'tehti' 'tegema' 'teha' (<-'tegi')
-+ 'n{a"}en' 'n{a"}eb' 'n{a"}ed' 'n{a"}eme' 'n{a"}ete' 'n{a"}evad' (<-'n{a"}gi')
-+ 'n{a"}eksin' 'n{a"}eks' 'n{a"}eksid' 'n{a"}eksime' 'n{a"}eksite' (<-'n{a"}gi')
-+ 'n{a"}gemata' 'n{a"}hakse' 'n{a"}hti' 'n{a"}ha' 'n{a"}gema' (<-'n{a"}gi')
-+ )
-+)
-+
-+
-+define stem as (
-+ do mark_regions
-+ not verb_exceptions
-+ unset is_verb
-+ backwards (
-+ do emphasis
-+ do verb
-+ try (not is_verb do substantive)
-+ do remove_double_kpt
-+
-+ )
-+)
diff --git a/compiler/generator_java.c b/compiler/generator_java.c
index 2958452..c254dbe 100644
--- a/compiler/generator_java.c
@@ -1027,29 +456,11 @@ index 73a81a9..f7772d3 100644
public abstract boolean stem();
diff --git a/libstemmer/modules.txt b/libstemmer/modules.txt
-index b8ec17a..d2c8e61 100644
+index cd36a21..5f51287 100644
--- a/libstemmer/modules.txt
+++ b/libstemmer/modules.txt
-@@ -10,11 +10,13 @@
- # the most commonly used encoding.
-
- arabic UTF_8 arabic,ar,ara
-+armenian UTF_8 armenian,hy,arm,hye
- basque UTF_8,ISO_8859_1 basque,eu,eus,baq
- catalan UTF_8,ISO_8859_1 catalan,ca,cat
- danish UTF_8,ISO_8859_1 danish,da,dan
- dutch UTF_8,ISO_8859_1 dutch,nl,dut,nld
- english UTF_8,ISO_8859_1 english,en,eng
-+estonian UTF_8 estonian,et,est
- finnish UTF_8,ISO_8859_1 finnish,fi,fin
- french UTF_8,ISO_8859_1 french,fr,fre,fra
- german UTF_8,ISO_8859_1 german,de,ger,deu
-@@ -51,12 +53,12 @@ porter UTF_8,ISO_8859_1 porter english
+@@ -53,9 +53,9 @@ porter UTF_8,ISO_8859_1 porter english
# algorithms are:
- #
- # german2 - This is a slight modification of the german stemmer.
--#german2 UTF_8,ISO_8859_1 german2 german
-+german2 UTF_8,ISO_8859_1 german2 german
#
# kraaij_pohlmann - This is a different dutch stemmer.
-#kraaij_pohlmann UTF_8,ISO_8859_1 kraaij_pohlmann dutch
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 987927ce8de..8082384472f 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -124,6 +124,8 @@ Improvements
* GITHUB#11657, LUCENE-10621: Upgrade to OpenNLP 2.3.2. (Christine Poerschke, Eric Pugh)
+* GITHUB#13209: Upgrade snowball to 26db1ab9. (Robert Muir)
+
Optimizations
---------------------
diff --git a/lucene/MIGRATE.md b/lucene/MIGRATE.md
index 1449166bdcb..a0137a2b97b 100644
--- a/lucene/MIGRATE.md
+++ b/lucene/MIGRATE.md
@@ -23,6 +23,10 @@
[Apache OpenNLP](https://opennlp.apache.org) 2.x opens the door to accessing various models via the ONNX runtime. To migrate you will need to update any deprecated OpenNLP methods that you may be using.
+### Snowball dependency upgrade
+
+Snowball has folded the "German2" stemmer into their "German" stemmer, so there's no "German2" anymore. For Lucene APIs (TokenFilter, TokenFilterFactory) that accept String, "German2" will be mapped to "German" to avoid breaking users. If you were previously creating German2Stemmer instances, you'll need to change your code to create GermanStemmer instances instead. For more information see https://snowballstem.org/algorithms/german2/stemmer.html
+
### IndexWriter requires a parent document field in order to use index sorting with document blocks (GITHUB#12829)
For indices newly created as of 10.0.0 onwards, IndexWriter preserves document blocks indexed via
diff --git a/lucene/analysis/common/src/generated/checksums/snowball.json b/lucene/analysis/common/src/generated/checksums/snowball.json
index 35224b5228a..ffe9bf98462 100644
--- a/lucene/analysis/common/src/generated/checksums/snowball.json
+++ b/lucene/analysis/common/src/generated/checksums/snowball.json
@@ -2,39 +2,38 @@
"lucene/analysis/common/src/java/org/tartarus/snowball/Among.java": "5371973cc30637273366f042e1cff920e0dd14f6",
"lucene/analysis/common/src/java/org/tartarus/snowball/SnowballProgram.java": "93d77707ddc746aad94c1308d2f6f4321a1aa003",
"lucene/analysis/common/src/java/org/tartarus/snowball/SnowballStemmer.java": "85bfc728393d7804f86f0def0467a12fd4b82fd3",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArabicStemmer.java": "2d43c4606bbaf96d9ac5f8be8ccf28e32164b9f0",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArmenianStemmer.java": "0be0949fe1f021ef41e3f9a27280b295ab1e998c",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/BasqueStemmer.java": "79e0f8ef0e20aea2353ce582734c1e4f7c5b2525",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java": "6566c359074101543ed6dade5c663c0a17041c7c",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java": "0dab70fd5d51c31c6e3903cf8576f9f498308eaf",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java": "cc2f1f6ee58a86b940f77aa0fbabb9de12d7db6e",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java": "1670c34df4e2b828a7c3502538b884b8e9c8d288",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/EstonianStemmer.java": "8660e2e4e6c378e9734067faaec49da1048b8f11",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java": "1942477b1bbce53bcc40bc6a7304eeda48711644",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java": "dd6a1fdfab9ea51e243ec8c9b35b1ad5d6e545cf",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/German2Stemmer.java": "092be62a6d68e4ec939fc56b13fa4e2856aca4e4",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java": "c44cb632b67b2c256b3bddc23edc3cabc36623b4",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/GreekStemmer.java": "95e2e5e2af36b98b5dbbc47f372134661005e462",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/HindiStemmer.java": "b32b64686f3f080850a47563d9c7031c6442febc",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java": "e45f89173aff28c0becf701970b4b566f92ef78b",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java": "5c38af8170ef725834b7d3c21a384958982d5624",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java": "b3aa9f634837724aa4768f928e077e222182e78f",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java": "b0645057fdabc0bfcfdfdbf5941d0c96533f2999",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java": "6d2cf90785d8d040fc85c1a7cc8326265763fd35",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java": "d77f3d03b88e2ed84b0205e4d8509f5cbed281fe",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java": "afd063fc5269d5badf5a1bf050591ce5135434f0",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java": "2d0da317ec9b8f5342f9c5c7d9ab9b66a1e1d0f5",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java": "b9eb10192b45b0e761493f468ff0fbc1e7692d1e",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java": "71cc1e0c2907a3d270ffaf36ef779d7c7eec5049",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java": "7b5e01a928c4b1f995bb75699ccf2c8cc3b6cbc2",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java": "548bab292d8736b898d36271985bf661adb30287",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java": "adfe596a96fef236c52e496f4837d4cd201e2ba5",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/SerbianStemmer.java": "63ea4640ee9a3c392f8c92215b7f88248629fddc",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java": "8bd1a6545a72ac35d444b08cc79f3ec284064c4e",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java": "3f833fc609b1c89bcba59d39979aeebd545e60bf",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/TamilStemmer.java": "401bde8628e30ef58e2b6abeb33b8f15f01aff71",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java": "35723339314291774044d6f01d00a158584c0154",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/YiddishStemmer.java": "bbe4112b65d1d754cf84cf20c7424c3af5a0d6c8",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArabicStemmer.java": "9e41a5a9cb3ab8ae2e3b4aab7762694873293adb",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArmenianStemmer.java": "513d4376d82285807a78c134e26587a07efc975a",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/BasqueStemmer.java": "820a005feedf2a5faed7920810dc92efd5f99a3d",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java": "6fad6909ef70835dfa3ce187045a8602df8cad29",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java": "ab354b8402565751cbb5e1cca69e62ed9005dc29",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java": "95c1d52f6b01a32e4ac289f86ce5fe4c040a73d8",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java": "30f88447cd4b051e4ec2d70cabc295ec551ff22b",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/EstonianStemmer.java": "35912a764f2500bb18594e06d9ae05c596357f9c",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java": "d860a3d26d23756ae32feec6c4866666184ab08b",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java": "ddcaab1a9564d9bfe1912990a354bf5b81452a35",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java": "03522e3a705603d66a614b2ef59a2a4a059720c8",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/GreekStemmer.java": "7cb9bd5500b873c387ace3fa5bd0fc06677c9644",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/HindiStemmer.java": "14860ebdc789ed595fa5adbab45606babe8eb915",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java": "73e5303414ab0c049eb99174bd854d76353643cc",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java": "bb4763deb4f4ff04e5f27a10f92c0738e345462a",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java": "0128235a133d89fa5dbec0217d8312b23a73dabd",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java": "e240334b4b1020f3d6cb47df2c22ecd39cfad57f",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java": "d01ce3361335502e1d805e1cbf195bd176f3b959",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java": "0523071c86f52a55d994a9eb7223403d2c93f973",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java": "0d733741a9bff766a07aea5725cb9bfb07511a4a",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java": "d5a630ed694b0cebc393fa6477f36e22a528ba7a",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java": "7377b9b23d0c2442f91ccf0b58f4f61731e047d1",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java": "482ef025903d9dadc023deccc96991af7b9b4e95",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java": "d919ce99c3d4e681c81e9b7fd185a46e8575f701",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java": "40037c44918a2c4c70727cdd5fb3bc1d3daaa6a2",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java": "4efd7680cfd24851e65849fb8b897b7785c6b9cf",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/SerbianStemmer.java": "11cf2272b107ee224649caa3f132907f1ac1157d",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java": "dc4af194219f802dcdd807008c5775da4df0b64e",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java": "f1f655856dc13da742797b2fa5d48562b2ea7590",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/TamilStemmer.java": "269feaa8f014a4952f233730d215b91f46fc9dd9",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java": "517c99669df0a47b4ab10db2aad8e7fa4ec62c30",
+ "lucene/analysis/common/src/java/org/tartarus/snowball/ext/YiddishStemmer.java": "55a4bc8ce1f4772de07a7b6e7cf4a32bb77eb051",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt": "f3627b9037da730534aa008b9edf32582c16866e",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt": "3f84f1c2ae282bd1350fa246baaded095bebdecc",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt": "5822d03de10b6403512774492508f586ea55a7c7",
@@ -43,30 +42,30 @@
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt": "301fa879d91631bc30169c12f4045f294aefd7ec",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt": "81837d5b861a876314b32fdaa2a4cee7c09fbbf8",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/indonesian_stop.txt": "b5e23c7a1b9893ed472bdbf27f952b9ace53d2d6",
+ "lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/irish_stop.txt": "99dea155818fe3fb3c31a29ff7f67e77a76ccc0d",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt": "4df230f3d0f3898d9812b8d08c7b08bfc55477c3",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt": "b612f3c7df6d3f6fca1aff5d8d9e5c353df423cd",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt": "e7579ef190edfc939348353dca480d9cedae1d83",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt": "cbe87679fbabae13c8ea16be8a11fd78151f8bf7",
"lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt": "852c0b6520a1d2ac9d2ec189c296c2707b5060aa",
- "lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt": "727b5244a67cab224865750451ae4e37139ee234",
+ "lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt": "2fcc6906c3d55f8087030c28f0f118be4aed6596",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/danish.zip": "7b95a90a988efd38a37c9f088d4e5b24e8e680c2",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/dutch.zip": "a49dbb48a736476322f1d6a35e919615d720cffb",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/english.zip": "b679920d98fa209a97a0aac541090c6698045a10",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/english.zip": "236025f171eaca4b3f2bfaf607c01e1a7c7f90f4",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/finnish.zip": "af5d28a55484999de4ce9311d6e274ff3836f7e7",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german.zip": "f193576f4e0070d860e7d6dbf71636e08d3cf94a",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german2.zip": "04334e3d91cda6d99ea64c55bfa39c6733d73795",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german.zip": "04334e3d91cda6d99ea64c55bfa39c6733d73795",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/hungarian.zip": "f384349d496bbe3815595a589d6d3650a99b27db",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/irish.zip": "d7cbb9f662cce8b6713eaf4ad1c049ec0b456336",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/italian.zip": "b15d0f8a265e972fcca5ce03e98d8b2d8bf0390b",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/italian.zip": "2a710ed8c7def75793213f7442ae38d9f7d16298",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/kp.zip": "c2fab3651184017b9d6695fb1fe9520ca64a8ec2",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/lovins.zip": "f688b976ab9bce24317569a10b12f020f81e5a24",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/lovins.zip": "7f00655ef9073c7dc99d4178e67630f56ddfcf73",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/nepali.zip": "8f5f2cf7c82feaadbab327888d86bd427ba8295e",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/norwegian.zip": "8c195ff5a6519c276e1beccb398264e8b16a82d5",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/porter.zip": "3934b2050b646704a542893e34458e3bab045fa9",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/porter.zip": "0ceeeeec3a440a033da204f155c3fc37eeac6e66",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/portuguese.zip": "2a79e01a46a0ad4aff06af1b5b9bb431ebe4b835",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/romanian.zip": "c4d3fe38d1ecec1eac5cec56d69cae724ae98550",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/romanian.zip": "f85994ff82aee266322ec8a0e5244ee2500769a6",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/russian.zip": "d7c5ec3032f16fef0c875a285798a5fbbce446d0",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/spanish.zip": "a5f815b75a44d2a9fdf709eb54f849c4e3abe7a8",
- "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/swedish.zip": "378eab85d54f95115c8c04266716f8479340ad7f",
+ "lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/swedish.zip": "2b7e776747cd8c72e6b75fc99423abcb91a81edc",
"lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/turkish.zip": "a10af981f306bdbe39a2b00a6601773a319c4257"
}
\ No newline at end of file
diff --git a/lucene/analysis/common/src/java/module-info.java b/lucene/analysis/common/src/java/module-info.java
index 84654191961..92db3127861 100644
--- a/lucene/analysis/common/src/java/module-info.java
+++ b/lucene/analysis/common/src/java/module-info.java
@@ -115,8 +115,6 @@ module org.apache.lucene.analysis.common {
org.apache.lucene.core;
opens org.apache.lucene.analysis.fa to
org.apache.lucene.core;
- opens org.apache.lucene.analysis.ga to
- org.apache.lucene.core;
opens org.apache.lucene.analysis.gl to
org.apache.lucene.core;
opens org.apache.lucene.analysis.hi to
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilter.java
index dd024804422..0dcf3a95f84 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilter.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilter.java
@@ -24,8 +24,8 @@ import org.apache.lucene.analysis.util.StemmerUtil;
/**
* Normalizes German characters according to the heuristics of the <a
- * href="https://snowballstem.org/algorithms/german2/stemmer.html">German2 snowball algorithm</a>.
- * It allows for the fact that ä, ö and ü are sometimes written as ae, oe and ue.
+ * href="https://snowballstem.org/algorithms/german/stemmer.html">German snowball algorithm</a>. It
+ * allows for the fact that ä, ö and ü are sometimes written as ae, oe and ue.
*
* <ul>
* <li>'ß' is replaced by 'ss'
@@ -34,7 +34,7 @@ import org.apache.lucene.analysis.util.StemmerUtil;
* <li>'ue' is replaced by 'u', when not following a vowel or q.
* </ul>
*
- * This is useful if you want this normalization without using the German2 stemmer, or perhaps no
+ * This is useful if you want this normalization without using the German stemmer, or perhaps no
* stemming at all.
*/
public final class GermanNormalizationFilter extends TokenFilter {
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishAnalyzer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishAnalyzer.java
index 3b031e72260..f36468c37d0 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishAnalyzer.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishAnalyzer.java
@@ -43,7 +43,7 @@ public final class IrishAnalyzer extends StopwordAnalyzerBase {
private final CharArraySet stemExclusionSet;
/** File containing default Irish stopwords. */
- public static final String DEFAULT_STOPWORD_FILE = "stopwords.txt";
+ public static final String DEFAULT_STOPWORD_FILE = "irish_stop.txt";
private static final CharArraySet DEFAULT_ARTICLES =
CharArraySet.unmodifiableSet(new CharArraySet(Arrays.asList("d", "m", "b"), true));
@@ -75,11 +75,10 @@ public final class IrishAnalyzer extends StopwordAnalyzerBase {
static {
try {
DEFAULT_STOP_SET =
- WordlistLoader.getWordSet(
+ WordlistLoader.getSnowballWordSet(
IOUtils.requireResourceNonNull(
- IrishAnalyzer.class.getResourceAsStream(DEFAULT_STOPWORD_FILE),
- DEFAULT_STOPWORD_FILE),
- "#");
+ SnowballFilter.class.getResourceAsStream(DEFAULT_STOPWORD_FILE),
+ DEFAULT_STOPWORD_FILE));
} catch (IOException ex) {
// default set should always be present as it is part of the
// distribution (JAR)
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java
index 4d3dfc4f42f..bfd99264acd 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java
@@ -70,6 +70,11 @@ public final class SnowballFilter extends TokenFilter {
public SnowballFilter(TokenStream in, String name) {
super(in);
Objects.requireNonNull(name, "name");
+ // it was called "German2" for eons, but snowball folded it into "German" and deleted "German2"
+ // for now, don't annoy our users...
+ if (name.equals("German2")) {
+ name = "German";
+ }
// Class.forName is frowned upon in place of the ResourceLoader but in this case,
// the factory will use the other constructor so that the program is already loaded.
try {
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java
index 139c6488e74..2b31d2fe1fa 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java
@@ -59,7 +59,13 @@ public class SnowballPorterFilterFactory extends TokenFilterFactory implements R
/** Creates a new SnowballPorterFilterFactory */
public SnowballPorterFilterFactory(Map<String, String> args) {
super(args);
- language = get(args, "language", "English");
+ String lang = get(args, "language", "English");
+ // it was called "German2" for eons, but snowball folded it into "German" and deleted "German2"
+ // for now, don't annoy our users...
+ if (lang.equals("German2")) {
+ lang = "German";
+ }
+ language = lang;
wordFiles = get(args, PROTECTED_TOKENS);
if (!args.isEmpty()) {
throw new IllegalArgumentException("Unknown parameters: " + args);
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArabicStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArabicStemmer.java
index 87491e5aea6..a66ee339c30 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArabicStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArabicStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -204,7 +204,10 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
};
private static final Among a_7[] = {
- new Among("\u0628", -1, 1), new Among("\u0628\u0628", 0, 2), new Among("\u0643\u0643", -1, 3)
+ new Among("\u0628", -1, 1),
+ new Among("\u0628\u0627", 0, -1),
+ new Among("\u0628\u0628", 0, 2),
+ new Among("\u0643\u0643", -1, 3)
};
private static final Among a_8[] = {
@@ -556,7 +559,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
switch (among_var) {
case 1:
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
B_is_noun = true;
@@ -564,7 +567,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
B_is_defined = true;
break;
case 2:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
B_is_noun = true;
@@ -585,25 +588,25 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
switch (among_var) {
case 1:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_from("\u0623");
break;
case 2:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_from("\u0622");
break;
case 3:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_from("\u0627");
break;
case 4:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_from("\u0625");
@@ -613,36 +616,25 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_Prefix_Step2() {
+ bra = cursor;
+ if (find_among(a_5) == 0) {
+ return false;
+ }
+ ket = cursor;
+ if (limit <= 3) {
+ return false;
+ }
{
int v_1 = cursor;
lab0:
{
- if (!(eq_s("\u0641\u0627"))) {
+ if (!(eq_s("\u0627"))) {
break lab0;
}
return false;
}
cursor = v_1;
}
- {
- int v_2 = cursor;
- lab1:
- {
- if (!(eq_s("\u0648\u0627"))) {
- break lab1;
- }
- return false;
- }
- cursor = v_2;
- }
- bra = cursor;
- if (find_among(a_5) == 0) {
- return false;
- }
- ket = cursor;
- if (!(limit > 3)) {
- return false;
- }
slice_del();
return true;
}
@@ -657,13 +649,13 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
switch (among_var) {
case 1:
- if (!(limit > 5)) {
+ if (limit <= 5) {
return false;
}
slice_del();
break;
case 2:
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
slice_del();
@@ -674,17 +666,6 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_Prefix_Step3b_Noun() {
int among_var;
- {
- int v_1 = cursor;
- lab0:
- {
- if (!(eq_s("\u0628\u0627"))) {
- break lab0;
- }
- return false;
- }
- cursor = v_1;
- }
bra = cursor;
among_var = find_among(a_7);
if (among_var == 0) {
@@ -693,19 +674,19 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
switch (among_var) {
case 1:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_del();
break;
case 2:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_from("\u0628");
break;
case 3:
- if (!(limit > 3)) {
+ if (limit <= 3) {
return false;
}
slice_from("\u0643");
@@ -724,25 +705,25 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
switch (among_var) {
case 1:
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
slice_from("\u064A");
break;
case 2:
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
slice_from("\u062A");
break;
case 3:
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
slice_from("\u0646");
break;
case 4:
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
slice_from("\u0623");
@@ -757,7 +738,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
ket = cursor;
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
B_is_verb = true;
@@ -776,19 +757,19 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
bra = cursor;
switch (among_var) {
case 1:
- if (!(limit >= 4)) {
+ if (limit < 4) {
return false;
}
slice_del();
break;
case 2:
- if (!(limit >= 5)) {
+ if (limit < 5) {
return false;
}
slice_del();
break;
case 3:
- if (!(limit >= 6)) {
+ if (limit < 6) {
return false;
}
slice_del();
@@ -803,7 +784,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit > 5)) {
+ if (limit <= 5) {
return false;
}
slice_del();
@@ -816,7 +797,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit > 4)) {
+ if (limit <= 4) {
return false;
}
slice_del();
@@ -829,7 +810,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit >= 5)) {
+ if (limit < 5) {
return false;
}
slice_del();
@@ -842,7 +823,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit >= 4)) {
+ if (limit < 4) {
return false;
}
slice_del();
@@ -855,7 +836,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit >= 4)) {
+ if (limit < 4) {
return false;
}
slice_del();
@@ -868,7 +849,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit >= 3)) {
+ if (limit < 3) {
return false;
}
slice_del();
@@ -885,19 +866,19 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
bra = cursor;
switch (among_var) {
case 1:
- if (!(limit >= 4)) {
+ if (limit < 4) {
return false;
}
slice_del();
break;
case 2:
- if (!(limit >= 5)) {
+ if (limit < 5) {
return false;
}
slice_del();
break;
case 3:
- if (!(limit >= 6)) {
+ if (limit < 6) {
return false;
}
slice_del();
@@ -916,25 +897,25 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
bra = cursor;
switch (among_var) {
case 1:
- if (!(limit >= 4)) {
+ if (limit < 4) {
return false;
}
slice_del();
break;
case 2:
- if (!(limit >= 5)) {
+ if (limit < 5) {
return false;
}
slice_del();
break;
case 3:
- if (!(limit > 5)) {
+ if (limit <= 5) {
return false;
}
slice_del();
break;
case 4:
- if (!(limit >= 6)) {
+ if (limit < 6) {
return false;
}
slice_del();
@@ -949,7 +930,7 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
- if (!(limit >= 5)) {
+ if (limit < 5) {
return false;
}
slice_del();
@@ -966,13 +947,13 @@ public class ArabicStemmer extends org.tartarus.snowball.SnowballStemmer {
bra = cursor;
switch (among_var) {
case 1:
- if (!(limit >= 4)) {
+ if (limit < 4) {
return false;
}
slice_del();
break;
case 2:
- if (!(limit >= 6)) {
+ if (limit < 6) {
return false;
}
slice_del();
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArmenianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArmenianStemmer.java
index 44375602b40..486deab73ea 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArmenianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ArmenianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class ArmenianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -294,10 +294,7 @@ public class ArmenianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_adjective() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/BasqueStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/BasqueStemmer.java
index e59c4ced09a..03d5bbd2a8b 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/BasqueStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/BasqueStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class BasqueStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -622,24 +622,15 @@ public class BasqueStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_aditzak() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java
index 00da90214b3..7b2b5b6b8b8 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class CatalanStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -672,9 +672,6 @@ public class CatalanStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -711,17 +708,11 @@ public class CatalanStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_attached_pronoun() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java
index ad05c5a4bfc..33fe6256459 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class DanishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -83,7 +83,7 @@ public class DanishStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
@@ -124,7 +124,7 @@ public class DanishStemmer extends org.tartarus.snowball.SnowballStemmer {
I_p1 = cursor;
lab4:
{
- if (!(I_p1 < I_x)) {
+ if (I_p1 >= I_x) {
break lab4;
}
I_p1 = I_x;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java
index 211b4f11e3e..fd7f2742f5b 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class DutchStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -83,9 +83,6 @@ public class DutchStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -213,7 +210,7 @@ public class DutchStemmer extends org.tartarus.snowball.SnowballStemmer {
I_p1 = cursor;
lab4:
{
- if (!(I_p1 < 3)) {
+ if (I_p1 >= 3) {
break lab4;
}
I_p1 = 3;
@@ -258,9 +255,6 @@ public class DutchStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_1);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -285,17 +279,11 @@ public class DutchStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_undouble() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
index 9f6f019c3e0..71b552161f6 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class EnglishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -152,6 +152,8 @@ public class EnglishStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("ugly", -1, 8)
};
+ private static final char g_aeo[] = {17, 64};
+
private static final char g_v[] = {17, 65, 16, 1};
private static final char g_v_WXY[] = {1, 17, 65, 208, 1};
@@ -341,17 +343,11 @@ public class EnglishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_Step_1a() {
@@ -385,7 +381,7 @@ public class EnglishStemmer extends org.tartarus.snowball.SnowballStemmer {
{
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
break lab2;
}
cursor = c;
@@ -455,45 +451,50 @@ public class EnglishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
cursor = limit - v_1;
slice_del();
+ ket = cursor;
+ bra = cursor;
int v_3 = limit - cursor;
among_var = find_among_b(a_3);
- if (among_var == 0) {
- return false;
- }
- cursor = limit - v_3;
switch (among_var) {
case 1:
- {
- int c = cursor;
- insert(cursor, cursor, "e");
- cursor = c;
- }
- break;
+ slice_from("e");
+ return false;
case 2:
- ket = cursor;
- if (cursor <= limit_backward) {
- return false;
+ {
+ int v_4 = limit - cursor;
+ lab2:
+ {
+ if (!(in_grouping_b(g_aeo, 97, 111))) {
+ break lab2;
+ }
+ if (cursor > limit_backward) {
+ break lab2;
+ }
+ return false;
+ }
+ cursor = limit - v_4;
}
- cursor--;
- bra = cursor;
- slice_del();
break;
case 3:
if (cursor != I_p1) {
return false;
}
- int v_4 = limit - cursor;
+ int v_5 = limit - cursor;
if (!r_shortv()) {
return false;
}
- cursor = limit - v_4;
- {
- int c = cursor;
- insert(cursor, cursor, "e");
- cursor = c;
- }
- break;
+ cursor = limit - v_5;
+ slice_from("e");
+ return false;
}
+ cursor = limit - v_3;
+ ket = cursor;
+ if (cursor <= limit_backward) {
+ return false;
+ }
+ cursor--;
+ bra = cursor;
+ slice_del();
break;
}
return true;
@@ -841,7 +842,7 @@ public class EnglishStemmer extends org.tartarus.snowball.SnowballStemmer {
{
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
break lab3;
}
cursor = c;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EstonianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EstonianStemmer.java
index 91a55809232..f82e18e3476 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EstonianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/EstonianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -79,12 +79,20 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("l", -1, 1),
new Among("s", -1, 1),
new Among("ks", 5, 1),
- new Among("t", -1, 1),
+ new Among("t", -1, 2),
new Among("lt", 7, 1),
new Among("st", 7, 1)
};
private static final Among a_6[] = {
+ new Among("", -1, 2),
+ new Among("las", 0, 1),
+ new Among("lis", 0, 1),
+ new Among("mis", 0, 1),
+ new Among("t", 0, -1)
+ };
+
+ private static final Among a_7[] = {
new Among("d", -1, 4),
new Among("sid", 0, 2),
new Among("de", -1, 4),
@@ -94,10 +102,6 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("te", -1, 3)
};
- private static final Among a_7[] = {
- new Among("kk", -1, -1), new Among("pp", -1, -1), new Among("tt", -1, -1)
- };
-
private static final Among a_8[] = {
new Among("va", -1, -1),
new Among("du", -1, -1),
@@ -106,10 +110,14 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
};
private static final Among a_9[] = {
- new Among("ma", -1, 2), new Among("mai", -1, 1), new Among("m", -1, 1)
+ new Among("kk", -1, 1), new Among("pp", -1, 2), new Among("tt", -1, 3)
};
private static final Among a_10[] = {
+ new Among("ma", -1, 2), new Among("mai", -1, 1), new Among("m", -1, 1)
+ };
+
+ private static final Among a_11[] = {
new Among("joob", -1, 1),
new Among("jood", -1, 1),
new Among("joodakse", 1, 1),
@@ -418,7 +426,6 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
};
private int I_p1;
- private boolean B_is_verb;
private boolean r_mark_regions() {
I_p1 = limit;
@@ -475,7 +482,7 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_3 = limit - cursor;
{
int c = cursor - 4;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -540,7 +547,6 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
slice_del();
break;
}
- B_is_verb = true;
return true;
}
@@ -601,32 +607,49 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_case_ending() {
+ int among_var;
if (cursor < I_p1) {
return false;
}
int v_2 = limit_backward;
limit_backward = I_p1;
ket = cursor;
- if (find_among_b(a_5) == 0) {
+ among_var = find_among_b(a_5);
+ if (among_var == 0) {
limit_backward = v_2;
return false;
}
bra = cursor;
limit_backward = v_2;
- lab0:
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(in_grouping_b(g_RV, 97, 117))) {
- break lab1;
+ switch (among_var) {
+ case 1:
+ lab0:
+ {
+ int v_3 = limit - cursor;
+ lab1:
+ {
+ if (!(in_grouping_b(g_RV, 97, 117))) {
+ break lab1;
+ }
+ break lab0;
+ }
+ cursor = limit - v_3;
+ if (!r_LONGV()) {
+ return false;
+ }
}
- break lab0;
- }
- cursor = limit - v_3;
- if (!r_LONGV()) {
- return false;
- }
+ break;
+ case 2:
+ int v_4 = limit - cursor;
+ {
+ int c = cursor - 4;
+ if (c < limit_backward) {
+ return false;
+ }
+ cursor = c;
+ }
+ cursor = limit - v_4;
+ break;
}
slice_del();
return true;
@@ -640,7 +663,7 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_2 = limit_backward;
limit_backward = I_p1;
ket = cursor;
- among_var = find_among_b(a_6);
+ among_var = find_among_b(a_7);
if (among_var == 0) {
limit_backward = v_2;
return false;
@@ -674,84 +697,39 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_5 = limit - cursor;
{
int c = cursor - 4;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
break lab2;
}
cursor = c;
}
cursor = limit - v_5;
- lab3:
- {
- int v_6 = limit - cursor;
- lab4:
- {
- if (!(eq_s_b("mis"))) {
- break lab4;
- }
- slice_from("e");
- break lab3;
- }
- cursor = limit - v_6;
- lab5:
- {
- if (!(eq_s_b("las"))) {
- break lab5;
- }
+ among_var = find_among_b(a_6);
+ switch (among_var) {
+ case 1:
slice_from("e");
- break lab3;
- }
- cursor = limit - v_6;
- lab6:
- {
- if (!(eq_s_b("lis"))) {
- break lab6;
- }
- slice_from("e");
- break lab3;
- }
- cursor = limit - v_6;
- {
- int v_7 = limit - cursor;
- lab7:
- {
- if (!(eq_s_b("t"))) {
- break lab7;
- }
- break lab2;
- }
- cursor = limit - v_7;
- }
- slice_del();
+ break;
+ case 2:
+ slice_del();
+ break;
}
break lab1;
}
cursor = limit - v_4;
- {
- int v_8 = limit - cursor;
- lab8:
- {
- if (!(eq_s_b("t"))) {
- break lab8;
- }
- return false;
- }
- cursor = limit - v_8;
- }
slice_from("t");
}
break;
case 4:
- lab9:
+ lab3:
{
- int v_9 = limit - cursor;
- lab10:
+ int v_6 = limit - cursor;
+ lab4:
{
if (!(in_grouping_b(g_RV, 97, 117))) {
- break lab10;
+ break lab4;
}
- break lab9;
+ break lab3;
}
- cursor = limit - v_9;
+ cursor = limit - v_6;
if (!r_LONGV()) {
return false;
}
@@ -762,33 +740,6 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
return true;
}
- private boolean r_double() {
- int v_1 = limit - cursor;
- if (find_among_b(a_7) == 0) {
- return false;
- }
- cursor = limit - v_1;
- return true;
- }
-
- private boolean r_undouble() {
- if (cursor <= limit_backward) {
- return false;
- }
- cursor--;
- ket = cursor;
- {
- int c = cursor - 1;
- if (limit_backward > c || c > limit) {
- return false;
- }
- cursor = c;
- }
- bra = cursor;
- slice_del();
- return true;
- }
-
private boolean r_nu() {
if (cursor < I_p1) {
return false;
@@ -806,18 +757,31 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
return true;
}
- private boolean r_remove_double_kpt() {
+ private boolean r_undouble_kpt() {
+ int among_var;
if (!(in_grouping_b(g_V1, 97, 252))) {
return false;
}
- int v_1 = limit - cursor;
- if (!r_double()) {
+ if (I_p1 > cursor) {
return false;
}
- cursor = limit - v_1;
- if (!r_undouble()) {
+ ket = cursor;
+ among_var = find_among_b(a_9);
+ if (among_var == 0) {
return false;
}
+ bra = cursor;
+ switch (among_var) {
+ case 1:
+ slice_from("k");
+ break;
+ case 2:
+ slice_from("p");
+ break;
+ case 3:
+ slice_from("t");
+ break;
+ }
return true;
}
@@ -829,7 +793,7 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_2 = limit_backward;
limit_backward = I_p1;
ket = cursor;
- among_var = find_among_b(a_9);
+ among_var = find_among_b(a_10);
if (among_var == 0) {
limit_backward = v_2;
return false;
@@ -875,7 +839,7 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_verb_exceptions() {
int among_var;
bra = cursor;
- among_var = find_among(a_10);
+ among_var = find_among(a_11);
if (among_var == 0) {
return false;
}
@@ -900,7 +864,7 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
slice_from("l\u00F6\u00F6");
break;
case 6:
- slice_from("l\u00F6i");
+ slice_from("l\u00F5i");
break;
case 7:
slice_from("loo");
@@ -944,11 +908,8 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
@Override
public boolean stem() {
- int v_1 = cursor;
- r_mark_regions();
- cursor = v_1;
{
- int v_2 = cursor;
+ int v_1 = cursor;
lab0:
{
if (!r_verb_exceptions()) {
@@ -956,33 +917,37 @@ public class EstonianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
return false;
}
- cursor = v_2;
+ cursor = v_1;
}
- B_is_verb = false;
+ int v_2 = cursor;
+ r_mark_regions();
+ cursor = v_2;
limit_backward = cursor;
cursor = limit;
int v_3 = limit - cursor;
r_emphasis();
cursor = limit - v_3;
int v_4 = limit - cursor;
- r_verb();
- cursor = limit - v_4;
- int v_5 = limit - cursor;
lab1:
{
lab2:
{
- if (!(B_is_verb)) {
+ int v_5 = limit - cursor;
+ lab3:
+ {
+ if (!r_verb()) {
+ break lab3;
+ }
break lab2;
}
cursor = limit - v_5;
- break lab1;
+ r_substantive();
}
- r_substantive();
}
- int v_8 = limit - cursor;
- r_remove_double_kpt();
- cursor = limit - v_8;
+ cursor = limit - v_4;
+ int v_6 = limit - cursor;
+ r_undouble_kpt();
+ cursor = limit - v_6;
cursor = limit_backward;
return true;
}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
index 94fbf60374d..4c26766295b 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class FinnishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -213,10 +213,7 @@ public class FinnishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_particle_etc() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
index c5b2df8abb3..b2c27739df0 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class FrenchStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -446,9 +446,6 @@ public class FrenchStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_1);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -485,24 +482,15 @@ public class FrenchStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_standard_suffix() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/German2Stemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/German2Stemmer.java
deleted file mode 100644
index 48ba9fe57a3..00000000000
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/German2Stemmer.java
+++ /dev/null
@@ -1,529 +0,0 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
-
-package org.tartarus.snowball.ext;
-
-import org.tartarus.snowball.Among;
-
-/**
- * This class implements the stemming algorithm defined by a snowball script.
- *
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
- */
-@SuppressWarnings("unused")
-public class German2Stemmer extends org.tartarus.snowball.SnowballStemmer {
-
- private static final long serialVersionUID = 1L;
- private static final java.lang.invoke.MethodHandles.Lookup methodObject =
- java.lang.invoke.MethodHandles.lookup();
-
- private static final Among a_0[] = {
- new Among("", -1, 6),
- new Among("ae", 0, 2),
- new Among("oe", 0, 3),
- new Among("qu", 0, 5),
- new Among("ue", 0, 4),
- new Among("\u00DF", 0, 1)
- };
-
- private static final Among a_1[] = {
- new Among("", -1, 5),
- new Among("U", 0, 2),
- new Among("Y", 0, 1),
- new Among("\u00E4", 0, 3),
- new Among("\u00F6", 0, 4),
- new Among("\u00FC", 0, 2)
- };
-
- private static final Among a_2[] = {
- new Among("e", -1, 2),
- new Among("em", -1, 1),
- new Among("en", -1, 2),
- new Among("ern", -1, 1),
- new Among("er", -1, 1),
- new Among("s", -1, 3),
- new Among("es", 5, 2)
- };
-
- private static final Among a_3[] = {
- new Among("en", -1, 1), new Among("er", -1, 1), new Among("st", -1, 2), new Among("est", 2, 1)
- };
-
- private static final Among a_4[] = {new Among("ig", -1, 1), new Among("lich", -1, 1)};
-
- private static final Among a_5[] = {
- new Among("end", -1, 1),
- new Among("ig", -1, 2),
- new Among("ung", -1, 1),
- new Among("lich", -1, 3),
- new Among("isch", -1, 2),
- new Among("ik", -1, 2),
- new Among("heit", -1, 3),
- new Among("keit", -1, 4)
- };
-
- private static final char g_v[] = {
- 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32, 8
- };
-
- private static final char g_s_ending[] = {117, 30, 5};
-
- private static final char g_st_ending[] = {117, 30, 4};
-
- private int I_x;
- private int I_p2;
- private int I_p1;
-
- private boolean r_prelude() {
- int among_var;
- int v_1 = cursor;
- while (true) {
- int v_2 = cursor;
- lab0:
- {
- golab1:
- while (true) {
- int v_3 = cursor;
- lab2:
- {
- if (!(in_grouping(g_v, 97, 252))) {
- break lab2;
- }
- bra = cursor;
- lab3:
- {
- int v_4 = cursor;
- lab4:
- {
- if (!(eq_s("u"))) {
- break lab4;
- }
- ket = cursor;
- if (!(in_grouping(g_v, 97, 252))) {
- break lab4;
- }
- slice_from("U");
- break lab3;
- }
- cursor = v_4;
- if (!(eq_s("y"))) {
- break lab2;
- }
- ket = cursor;
- if (!(in_grouping(g_v, 97, 252))) {
- break lab2;
- }
- slice_from("Y");
- }
- cursor = v_3;
- break golab1;
- }
- cursor = v_3;
- if (cursor >= limit) {
- break lab0;
- }
- cursor++;
- }
- continue;
- }
- cursor = v_2;
- break;
- }
- cursor = v_1;
- while (true) {
- int v_5 = cursor;
- lab5:
- {
- bra = cursor;
- among_var = find_among(a_0);
- if (among_var == 0) {
- break lab5;
- }
- ket = cursor;
- switch (among_var) {
- case 1:
- slice_from("ss");
- break;
- case 2:
- slice_from("\u00E4");
- break;
- case 3:
- slice_from("\u00F6");
- break;
- case 4:
- slice_from("\u00FC");
- break;
- case 5:
- {
- int c = cursor + 2;
- if (0 > c || c > limit) {
- break lab5;
- }
- cursor = c;
- }
- break;
- case 6:
- if (cursor >= limit) {
- break lab5;
- }
- cursor++;
- break;
- }
- continue;
- }
- cursor = v_5;
- break;
- }
- return true;
- }
-
- private boolean r_mark_regions() {
- I_p1 = limit;
- I_p2 = limit;
- int v_1 = cursor;
- {
- int c = cursor + 3;
- if (0 > c || c > limit) {
- return false;
- }
- cursor = c;
- }
- I_x = cursor;
- cursor = v_1;
- golab0:
- while (true) {
- lab1:
- {
- if (!(in_grouping(g_v, 97, 252))) {
- break lab1;
- }
- break golab0;
- }
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- golab2:
- while (true) {
- lab3:
- {
- if (!(out_grouping(g_v, 97, 252))) {
- break lab3;
- }
- break golab2;
- }
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- I_p1 = cursor;
- lab4:
- {
- if (!(I_p1 < I_x)) {
- break lab4;
- }
- I_p1 = I_x;
- }
- golab5:
- while (true) {
- lab6:
- {
- if (!(in_grouping(g_v, 97, 252))) {
- break lab6;
- }
- break golab5;
- }
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- golab7:
- while (true) {
- lab8:
- {
- if (!(out_grouping(g_v, 97, 252))) {
- break lab8;
- }
- break golab7;
- }
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- I_p2 = cursor;
- return true;
- }
-
- private boolean r_postlude() {
- int among_var;
- while (true) {
- int v_1 = cursor;
- lab0:
- {
- bra = cursor;
- among_var = find_among(a_1);
- if (among_var == 0) {
- break lab0;
- }
- ket = cursor;
- switch (among_var) {
- case 1:
- slice_from("y");
- break;
- case 2:
- slice_from("u");
- break;
- case 3:
- slice_from("a");
- break;
- case 4:
- slice_from("o");
- break;
- case 5:
- if (cursor >= limit) {
- break lab0;
- }
- cursor++;
- break;
- }
- continue;
- }
- cursor = v_1;
- break;
- }
- return true;
- }
-
- private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
- }
-
- private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
- }
-
- private boolean r_standard_suffix() {
- int among_var;
- int v_1 = limit - cursor;
- lab0:
- {
- ket = cursor;
- among_var = find_among_b(a_2);
- if (among_var == 0) {
- break lab0;
- }
- bra = cursor;
- if (!r_R1()) {
- break lab0;
- }
- switch (among_var) {
- case 1:
- slice_del();
- break;
- case 2:
- slice_del();
- int v_2 = limit - cursor;
- lab1:
- {
- ket = cursor;
- if (!(eq_s_b("s"))) {
- cursor = limit - v_2;
- break lab1;
- }
- bra = cursor;
- if (!(eq_s_b("nis"))) {
- cursor = limit - v_2;
- break lab1;
- }
- slice_del();
- }
- break;
- case 3:
- if (!(in_grouping_b(g_s_ending, 98, 116))) {
- break lab0;
- }
- slice_del();
- break;
- }
- }
- cursor = limit - v_1;
- int v_3 = limit - cursor;
- lab2:
- {
- ket = cursor;
- among_var = find_among_b(a_3);
- if (among_var == 0) {
- break lab2;
- }
- bra = cursor;
- if (!r_R1()) {
- break lab2;
- }
- switch (among_var) {
- case 1:
- slice_del();
- break;
- case 2:
- if (!(in_grouping_b(g_st_ending, 98, 116))) {
- break lab2;
- }
- {
- int c = cursor - 3;
- if (limit_backward > c || c > limit) {
- break lab2;
- }
- cursor = c;
- }
- slice_del();
- break;
- }
- }
- cursor = limit - v_3;
- int v_4 = limit - cursor;
- lab3:
- {
- ket = cursor;
- among_var = find_among_b(a_5);
- if (among_var == 0) {
- break lab3;
- }
- bra = cursor;
- if (!r_R2()) {
- break lab3;
- }
- switch (among_var) {
- case 1:
- slice_del();
- int v_5 = limit - cursor;
- lab4:
- {
- ket = cursor;
- if (!(eq_s_b("ig"))) {
- cursor = limit - v_5;
- break lab4;
- }
- bra = cursor;
- {
- int v_6 = limit - cursor;
- lab5:
- {
- if (!(eq_s_b("e"))) {
- break lab5;
- }
- cursor = limit - v_5;
- break lab4;
- }
- cursor = limit - v_6;
- }
- if (!r_R2()) {
- cursor = limit - v_5;
- break lab4;
- }
- slice_del();
- }
- break;
- case 2:
- {
- int v_7 = limit - cursor;
- lab6:
- {
- if (!(eq_s_b("e"))) {
- break lab6;
- }
- break lab3;
- }
- cursor = limit - v_7;
- }
- slice_del();
- break;
- case 3:
- slice_del();
- int v_8 = limit - cursor;
- lab7:
- {
- ket = cursor;
- lab8:
- {
- int v_9 = limit - cursor;
- lab9:
- {
- if (!(eq_s_b("er"))) {
- break lab9;
- }
- break lab8;
- }
- cursor = limit - v_9;
- if (!(eq_s_b("en"))) {
- cursor = limit - v_8;
- break lab7;
- }
- }
- bra = cursor;
- if (!r_R1()) {
- cursor = limit - v_8;
- break lab7;
- }
- slice_del();
- }
- break;
- case 4:
- slice_del();
- int v_10 = limit - cursor;
- lab10:
- {
- ket = cursor;
- if (find_among_b(a_4) == 0) {
- cursor = limit - v_10;
- break lab10;
- }
- bra = cursor;
- if (!r_R2()) {
- cursor = limit - v_10;
- break lab10;
- }
- slice_del();
- }
- break;
- }
- }
- cursor = limit - v_4;
- return true;
- }
-
- @Override
- public boolean stem() {
- int v_1 = cursor;
- r_prelude();
- cursor = v_1;
- int v_2 = cursor;
- r_mark_regions();
- cursor = v_2;
- limit_backward = cursor;
- cursor = limit;
- r_standard_suffix();
- cursor = limit_backward;
- int v_4 = cursor;
- r_postlude();
- cursor = v_4;
- return true;
- }
-
- @Override
- public boolean equals(Object o) {
- return o instanceof German2Stemmer;
- }
-
- @Override
- public int hashCode() {
- return German2Stemmer.class.getName().hashCode();
- }
-}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java
index 1b9e32098e3..6b954832a9d 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -17,6 +17,15 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
java.lang.invoke.MethodHandles.lookup();
private static final Among a_0[] = {
+ new Among("", -1, 5),
+ new Among("ae", 0, 2),
+ new Among("oe", 0, 3),
+ new Among("qu", 0, -1),
+ new Among("ue", 0, 4),
+ new Among("\u00DF", 0, 1)
+ };
+
+ private static final Among a_1[] = {
new Among("", -1, 5),
new Among("U", 0, 2),
new Among("Y", 0, 1),
@@ -25,23 +34,23 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u00FC", 0, 2)
};
- private static final Among a_1[] = {
- new Among("e", -1, 2),
+ private static final Among a_2[] = {
+ new Among("e", -1, 3),
new Among("em", -1, 1),
- new Among("en", -1, 2),
- new Among("ern", -1, 1),
- new Among("er", -1, 1),
- new Among("s", -1, 3),
- new Among("es", 5, 2)
+ new Among("en", -1, 3),
+ new Among("ern", -1, 2),
+ new Among("er", -1, 2),
+ new Among("s", -1, 4),
+ new Among("es", 5, 3)
};
- private static final Among a_2[] = {
+ private static final Among a_3[] = {
new Among("en", -1, 1), new Among("er", -1, 1), new Among("st", -1, 2), new Among("est", 2, 1)
};
- private static final Among a_3[] = {new Among("ig", -1, 1), new Among("lich", -1, 1)};
+ private static final Among a_4[] = {new Among("ig", -1, 1), new Among("lich", -1, 1)};
- private static final Among a_4[] = {
+ private static final Among a_5[] = {
new Among("end", -1, 1),
new Among("ig", -1, 2),
new Among("ung", -1, 1),
@@ -65,86 +74,91 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
private int I_p1;
private boolean r_prelude() {
+ int among_var;
int v_1 = cursor;
while (true) {
int v_2 = cursor;
lab0:
{
- lab1:
- {
+ golab1:
+ while (true) {
int v_3 = cursor;
lab2:
- {
- bra = cursor;
- if (!(eq_s("\u00DF"))) {
- break lab2;
- }
- ket = cursor;
- slice_from("ss");
- break lab1;
- }
- cursor = v_3;
- if (cursor >= limit) {
- break lab0;
- }
- cursor++;
- }
- continue;
- }
- cursor = v_2;
- break;
- }
- cursor = v_1;
- while (true) {
- int v_4 = cursor;
- lab3:
- {
- golab4:
- while (true) {
- int v_5 = cursor;
- lab5:
{
if (!(in_grouping(g_v, 97, 252))) {
- break lab5;
+ break lab2;
}
bra = cursor;
- lab6:
+ lab3:
{
- int v_6 = cursor;
- lab7:
+ int v_4 = cursor;
+ lab4:
{
if (!(eq_s("u"))) {
- break lab7;
+ break lab4;
}
ket = cursor;
if (!(in_grouping(g_v, 97, 252))) {
- break lab7;
+ break lab4;
}
slice_from("U");
- break lab6;
+ break lab3;
}
- cursor = v_6;
+ cursor = v_4;
if (!(eq_s("y"))) {
- break lab5;
+ break lab2;
}
ket = cursor;
if (!(in_grouping(g_v, 97, 252))) {
- break lab5;
+ break lab2;
}
slice_from("Y");
}
- cursor = v_5;
- break golab4;
+ cursor = v_3;
+ break golab1;
}
- cursor = v_5;
+ cursor = v_3;
if (cursor >= limit) {
- break lab3;
+ break lab0;
}
cursor++;
}
continue;
}
- cursor = v_4;
+ cursor = v_2;
+ break;
+ }
+ cursor = v_1;
+ while (true) {
+ int v_5 = cursor;
+ lab5:
+ {
+ bra = cursor;
+ among_var = find_among(a_0);
+ ket = cursor;
+ switch (among_var) {
+ case 1:
+ slice_from("ss");
+ break;
+ case 2:
+ slice_from("\u00E4");
+ break;
+ case 3:
+ slice_from("\u00F6");
+ break;
+ case 4:
+ slice_from("\u00FC");
+ break;
+ case 5:
+ if (cursor >= limit) {
+ break lab5;
+ }
+ cursor++;
+ break;
+ }
+ continue;
+ }
+ cursor = v_5;
break;
}
return true;
@@ -156,7 +170,7 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
@@ -194,7 +208,7 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
I_p1 = cursor;
lab4:
{
- if (!(I_p1 < I_x)) {
+ if (I_p1 >= I_x) {
break lab4;
}
I_p1 = I_x;
@@ -238,10 +252,7 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
bra = cursor;
- among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
+ among_var = find_among(a_1);
ket = cursor;
switch (among_var) {
case 1:
@@ -272,17 +283,11 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_standard_suffix() {
@@ -291,7 +296,7 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
ket = cursor;
- among_var = find_among_b(a_1);
+ among_var = find_among_b(a_2);
if (among_var == 0) {
break lab0;
}
@@ -301,27 +306,41 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
}
switch (among_var) {
case 1:
+ {
+ int v_2 = limit - cursor;
+ lab1:
+ {
+ if (!(eq_s_b("syst"))) {
+ break lab1;
+ }
+ break lab0;
+ }
+ cursor = limit - v_2;
+ }
slice_del();
break;
case 2:
slice_del();
- int v_2 = limit - cursor;
- lab1:
+ break;
+ case 3:
+ slice_del();
+ int v_3 = limit - cursor;
+ lab2:
{
ket = cursor;
if (!(eq_s_b("s"))) {
- cursor = limit - v_2;
- break lab1;
+ cursor = limit - v_3;
+ break lab2;
}
bra = cursor;
if (!(eq_s_b("nis"))) {
- cursor = limit - v_2;
- break lab1;
+ cursor = limit - v_3;
+ break lab2;
}
slice_del();
}
break;
- case 3:
+ case 4:
if (!(in_grouping_b(g_s_ending, 98, 116))) {
break lab0;
}
@@ -330,17 +349,17 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
}
}
cursor = limit - v_1;
- int v_3 = limit - cursor;
- lab2:
+ int v_4 = limit - cursor;
+ lab3:
{
ket = cursor;
- among_var = find_among_b(a_2);
+ among_var = find_among_b(a_3);
if (among_var == 0) {
- break lab2;
+ break lab3;
}
bra = cursor;
if (!r_R1()) {
- break lab2;
+ break lab3;
}
switch (among_var) {
case 1:
@@ -348,12 +367,12 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
break;
case 2:
if (!(in_grouping_b(g_st_ending, 98, 116))) {
- break lab2;
+ break lab3;
}
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
- break lab2;
+ if (c < limit_backward) {
+ break lab3;
}
cursor = c;
}
@@ -361,115 +380,115 @@ public class GermanStemmer extends org.tartarus.snowball.SnowballStemmer {
break;
}
}
- cursor = limit - v_3;
- int v_4 = limit - cursor;
- lab3:
+ cursor = limit - v_4;
+ int v_5 = limit - cursor;
+ lab4:
{
ket = cursor;
- among_var = find_among_b(a_4);
+ among_var = find_among_b(a_5);
if (among_var == 0) {
- break lab3;
+ break lab4;
}
bra = cursor;
if (!r_R2()) {
- break lab3;
+ break lab4;
}
switch (among_var) {
case 1:
slice_del();
- int v_5 = limit - cursor;
- lab4:
+ int v_6 = limit - cursor;
+ lab5:
{
ket = cursor;
if (!(eq_s_b("ig"))) {
- cursor = limit - v_5;
- break lab4;
+ cursor = limit - v_6;
+ break lab5;
}
bra = cursor;
{
- int v_6 = limit - cursor;
- lab5:
+ int v_7 = limit - cursor;
+ lab6:
{
if (!(eq_s_b("e"))) {
- break lab5;
+ break lab6;
}
- cursor = limit - v_5;
- break lab4;
+ cursor = limit - v_6;
+ break lab5;
}
- cursor = limit - v_6;
+ cursor = limit - v_7;
}
if (!r_R2()) {
- cursor = limit - v_5;
- break lab4;
+ cursor = limit - v_6;
+ break lab5;
}
slice_del();
}
break;
case 2:
{
- int v_7 = limit - cursor;
- lab6:
+ int v_8 = limit - cursor;
+ lab7:
{
if (!(eq_s_b("e"))) {
- break lab6;
+ break lab7;
}
- break lab3;
+ break lab4;
}
- cursor = limit - v_7;
+ cursor = limit - v_8;
}
slice_del();
break;
case 3:
slice_del();
- int v_8 = limit - cursor;
- lab7:
+ int v_9 = limit - cursor;
+ lab8:
{
ket = cursor;
- lab8:
+ lab9:
{
- int v_9 = limit - cursor;
- lab9:
+ int v_10 = limit - cursor;
+ lab10:
{
if (!(eq_s_b("er"))) {
- break lab9;
+ break lab10;
}
- break lab8;
+ break lab9;
}
- cursor = limit - v_9;
+ cursor = limit - v_10;
if (!(eq_s_b("en"))) {
- cursor = limit - v_8;
- break lab7;
+ cursor = limit - v_9;
+ break lab8;
}
}
bra = cursor;
if (!r_R1()) {
- cursor = limit - v_8;
- break lab7;
+ cursor = limit - v_9;
+ break lab8;
}
slice_del();
}
break;
case 4:
slice_del();
- int v_10 = limit - cursor;
- lab10:
+ int v_11 = limit - cursor;
+ lab11:
{
ket = cursor;
- if (find_among_b(a_3) == 0) {
- cursor = limit - v_10;
- break lab10;
+ if (find_among_b(a_4) == 0) {
+ cursor = limit - v_11;
+ break lab11;
}
bra = cursor;
if (!r_R2()) {
- cursor = limit - v_10;
- break lab10;
+ cursor = limit - v_11;
+ break lab11;
}
slice_del();
}
break;
}
}
- cursor = limit - v_4;
+ cursor = limit - v_5;
return true;
}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GreekStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GreekStemmer.java
index f26e22d7882..a88962564e8 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GreekStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/GreekStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -115,37 +115,34 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C0\u03B5\u03C1\u03B9\u03C0\u03B1", 0, 1),
new Among("\u03B1\u03BD\u03B1\u03BC\u03C0\u03B1", 0, 1),
new Among("\u03B5\u03BC\u03C0\u03B1", 0, 1),
+ new Among("\u03B2", -1, 2),
new Among("\u03B4\u03B1\u03BD\u03B5", -1, 1),
+ new Among("\u03B2\u03B1\u03B8\u03C5\u03C1\u03B9", -1, 2),
+ new Among("\u03B2\u03B1\u03C1\u03BA", -1, 2),
+ new Among("\u03BC\u03B1\u03C1\u03BA", -1, 2),
+ new Among("\u03BB", -1, 2),
+ new Among("\u03BC", -1, 2),
+ new Among("\u03BA\u03BF\u03C1\u03BD", -1, 2),
new Among("\u03B1\u03B8\u03C1\u03BF", -1, 1),
- new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", 7, 1)
+ new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", 14, 1),
+ new Among("\u03C0", -1, 2),
+ new Among("\u03B9\u03BC\u03C0", 16, 2),
+ new Among("\u03C1", -1, 2),
+ new Among("\u03BC\u03B1\u03C1", 18, 2),
+ new Among("\u03B1\u03BC\u03C0\u03B1\u03C1", 18, 2),
+ new Among("\u03B3\u03BA\u03C1", 18, 2),
+ new Among("\u03B2\u03BF\u03BB\u03B2\u03BF\u03C1", 18, 2),
+ new Among("\u03B3\u03BB\u03C5\u03BA\u03BF\u03C1", 18, 2),
+ new Among("\u03C0\u03B9\u03C0\u03B5\u03C1\u03BF\u03C1", 18, 2),
+ new Among("\u03C0\u03C1", 18, 2),
+ new Among("\u03BC\u03C0\u03C1", 25, 2),
+ new Among("\u03B1\u03C1\u03C1", 18, 2),
+ new Among("\u03B3\u03BB\u03C5\u03BA\u03C5\u03C1", 18, 2),
+ new Among("\u03C0\u03BF\u03BB\u03C5\u03C1", 18, 2),
+ new Among("\u03BB\u03BF\u03C5", -1, 2)
};
private static final Among a_3[] = {
- new Among("\u03B2", -1, 1),
- new Among("\u03B2\u03B1\u03B8\u03C5\u03C1\u03B9", -1, 1),
- new Among("\u03B2\u03B1\u03C1\u03BA", -1, 1),
- new Among("\u03BC\u03B1\u03C1\u03BA", -1, 1),
- new Among("\u03BB", -1, 1),
- new Among("\u03BC", -1, 1),
- new Among("\u03BA\u03BF\u03C1\u03BD", -1, 1),
- new Among("\u03C0", -1, 1),
- new Among("\u03B9\u03BC\u03C0", 7, 1),
- new Among("\u03C1", -1, 1),
- new Among("\u03BC\u03B1\u03C1", 9, 1),
- new Among("\u03B1\u03BC\u03C0\u03B1\u03C1", 9, 1),
- new Among("\u03B3\u03BA\u03C1", 9, 1),
- new Among("\u03B2\u03BF\u03BB\u03B2\u03BF\u03C1", 9, 1),
- new Among("\u03B3\u03BB\u03C5\u03BA\u03BF\u03C1", 9, 1),
- new Among("\u03C0\u03B9\u03C0\u03B5\u03C1\u03BF\u03C1", 9, 1),
- new Among("\u03C0\u03C1", 9, 1),
- new Among("\u03BC\u03C0\u03C1", 16, 1),
- new Among("\u03B1\u03C1\u03C1", 9, 1),
- new Among("\u03B3\u03BB\u03C5\u03BA\u03C5\u03C1", 9, 1),
- new Among("\u03C0\u03BF\u03BB\u03C5\u03C1", 9, 1),
- new Among("\u03BB\u03BF\u03C5", -1, 1)
- };
-
- private static final Among a_4[] = {
new Among("\u03B9\u03B6\u03B1", -1, 1),
new Among("\u03B9\u03B6\u03B5", -1, 1),
new Among("\u03B9\u03B6\u03B1\u03BC\u03B5", -1, 1),
@@ -162,7 +159,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03B6\u03C9", -1, 1)
};
- private static final Among a_5[] = {
+ private static final Among a_4[] = {
new Among("\u03B2\u03B9", -1, 1),
new Among("\u03BB\u03B9", -1, 1),
new Among("\u03B1\u03BB", -1, 1),
@@ -173,7 +170,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B6\u03C9", -1, 1)
};
- private static final Among a_6[] = {
+ private static final Among a_5[] = {
new Among("\u03C9\u03B8\u03B7\u03BA\u03B1", -1, 1),
new Among("\u03C9\u03B8\u03B7\u03BA\u03B5", -1, 1),
new Among("\u03C9\u03B8\u03B7\u03BA\u03B1\u03BC\u03B5", -1, 1),
@@ -183,7 +180,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C9\u03B8\u03B7\u03BA\u03B5\u03C3", -1, 1)
};
- private static final Among a_7[] = {
+ private static final Among a_6[] = {
new Among("\u03BE\u03B1\u03BD\u03B1\u03C0\u03B1", -1, 1),
new Among("\u03B5\u03C0\u03B1", -1, 1),
new Among("\u03C0\u03B5\u03C1\u03B9\u03C0\u03B1", -1, 1),
@@ -191,37 +188,34 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B5\u03BC\u03C0\u03B1", -1, 1),
new Among("\u03C7\u03B1\u03C1\u03C4\u03BF\u03C0\u03B1", -1, 1),
new Among("\u03B5\u03BE\u03B1\u03C1\u03C7\u03B1", -1, 1),
+ new Among("\u03B3\u03B5", -1, 2),
+ new Among("\u03B3\u03BA\u03B5", -1, 2),
new Among("\u03BA\u03BB\u03B5", -1, 1),
- new Among("\u03B5\u03BA\u03BB\u03B5", 7, 1),
- new Among("\u03B1\u03C0\u03B5\u03BA\u03BB\u03B5", 8, 1),
- new Among("\u03B1\u03C0\u03BF\u03BA\u03BB\u03B5", 7, 1),
- new Among("\u03B5\u03C3\u03C9\u03BA\u03BB\u03B5", 7, 1),
+ new Among("\u03B5\u03BA\u03BB\u03B5", 9, 1),
+ new Among("\u03B1\u03C0\u03B5\u03BA\u03BB\u03B5", 10, 1),
+ new Among("\u03B1\u03C0\u03BF\u03BA\u03BB\u03B5", 9, 1),
+ new Among("\u03B5\u03C3\u03C9\u03BA\u03BB\u03B5", 9, 1),
new Among("\u03B4\u03B1\u03BD\u03B5", -1, 1),
new Among("\u03C0\u03B5", -1, 1),
- new Among("\u03B5\u03C0\u03B5", 13, 1),
- new Among("\u03BC\u03B5\u03C4\u03B5\u03C0\u03B5", 14, 1),
+ new Among("\u03B5\u03C0\u03B5", 15, 1),
+ new Among("\u03BC\u03B5\u03C4\u03B5\u03C0\u03B5", 16, 1),
new Among("\u03B5\u03C3\u03B5", -1, 1),
+ new Among("\u03B3\u03BA", -1, 2),
+ new Among("\u03BC", -1, 2),
+ new Among("\u03C0\u03BF\u03C5\u03BA\u03B1\u03BC", 20, 2),
+ new Among("\u03BA\u03BF\u03BC", 20, 2),
+ new Among("\u03B1\u03BD", -1, 2),
+ new Among("\u03BF\u03BB\u03BF", -1, 2),
new Among("\u03B1\u03B8\u03C1\u03BF", -1, 1),
- new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", 17, 1)
- };
-
- private static final Among a_8[] = {
- new Among("\u03B3\u03B5", -1, 1),
- new Among("\u03B3\u03BA\u03B5", -1, 1),
- new Among("\u03B3\u03BA", -1, 1),
- new Among("\u03BC", -1, 1),
- new Among("\u03C0\u03BF\u03C5\u03BA\u03B1\u03BC", 3, 1),
- new Among("\u03BA\u03BF\u03BC", 3, 1),
- new Among("\u03B1\u03BD", -1, 1),
- new Among("\u03BF\u03BB\u03BF", -1, 1),
- new Among("\u03C0", -1, 1),
- new Among("\u03BB\u03B1\u03C1", -1, 1),
- new Among("\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4", -1, 1),
- new Among("\u03B1\u03C6", -1, 1),
- new Among("\u03B3\u03B9\u03B3\u03B1\u03BD\u03C4\u03BF\u03B1\u03C6", 11, 1)
+ new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", 25, 1),
+ new Among("\u03C0", -1, 2),
+ new Among("\u03BB\u03B1\u03C1", -1, 2),
+ new Among("\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4", -1, 2),
+ new Among("\u03B1\u03C6", -1, 2),
+ new Among("\u03B3\u03B9\u03B3\u03B1\u03BD\u03C4\u03BF\u03B1\u03C6", 30, 2)
};
- private static final Among a_9[] = {
+ private static final Among a_7[] = {
new Among("\u03B9\u03C3\u03B1", -1, 1),
new Among("\u03B9\u03C3\u03B1\u03BC\u03B5", -1, 1),
new Among("\u03B9\u03C3\u03B1\u03BD\u03B5", -1, 1),
@@ -231,7 +225,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03C3\u03B5\u03C3", -1, 1)
};
- private static final Among a_10[] = {
+ private static final Among a_8[] = {
new Among("\u03BE\u03B1\u03BD\u03B1\u03C0\u03B1", -1, 1),
new Among("\u03B5\u03C0\u03B1", -1, 1),
new Among("\u03C0\u03B5\u03C1\u03B9\u03C0\u03B1", -1, 1),
@@ -253,7 +247,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", 17, 1)
};
- private static final Among a_11[] = {
+ private static final Among a_9[] = {
new Among("\u03B9\u03C3\u03BF\u03C5\u03BC\u03B5", -1, 1),
new Among("\u03B9\u03C3\u03BF\u03C5\u03BD\u03B5", -1, 1),
new Among("\u03B9\u03C3\u03B5\u03C4\u03B5", -1, 1),
@@ -263,53 +257,50 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03C3\u03C9", -1, 1)
};
- private static final Among a_12[] = {
+ private static final Among a_10[] = {
+ new Among("\u03B1\u03C4\u03B1", -1, 2),
+ new Among("\u03C6\u03B1", -1, 2),
+ new Among("\u03B7\u03C6\u03B1", 1, 2),
+ new Among("\u03BC\u03B5\u03B3", -1, 2),
+ new Among("\u03BB\u03C5\u03B3", -1, 2),
+ new Among("\u03B7\u03B4", -1, 2),
new Among("\u03BA\u03BB\u03B5", -1, 1),
- new Among("\u03B5\u03C3\u03C9\u03BA\u03BB\u03B5", 0, 1),
+ new Among("\u03B5\u03C3\u03C9\u03BA\u03BB\u03B5", 6, 1),
new Among("\u03C0\u03BB\u03B5", -1, 1),
new Among("\u03B4\u03B1\u03BD\u03B5", -1, 1),
new Among("\u03C3\u03B5", -1, 1),
- new Among("\u03B1\u03C3\u03B5", 4, 1),
- new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", -1, 1)
- };
-
- private static final Among a_13[] = {
- new Among("\u03B1\u03C4\u03B1", -1, 1),
- new Among("\u03C6\u03B1", -1, 1),
- new Among("\u03B7\u03C6\u03B1", 1, 1),
- new Among("\u03BC\u03B5\u03B3", -1, 1),
- new Among("\u03BB\u03C5\u03B3", -1, 1),
- new Among("\u03B7\u03B4", -1, 1),
- new Among("\u03BA\u03B1\u03B8", -1, 1),
- new Among("\u03B5\u03C7\u03B8", -1, 1),
- new Among("\u03BA\u03B1\u03BA", -1, 1),
- new Among("\u03BC\u03B1\u03BA", -1, 1),
- new Among("\u03C3\u03BA", -1, 1),
- new Among("\u03C6\u03B9\u03BB", -1, 1),
- new Among("\u03BA\u03C5\u03BB", -1, 1),
- new Among("\u03BC", -1, 1),
- new Among("\u03B3\u03B5\u03BC", 13, 1),
- new Among("\u03B1\u03C7\u03BD", -1, 1),
- new Among("\u03C0", -1, 1),
- new Among("\u03B1\u03C0", 16, 1),
- new Among("\u03B5\u03BC\u03C0", 16, 1),
- new Among("\u03B5\u03C5\u03C0", 16, 1),
- new Among("\u03B1\u03C1", -1, 1),
- new Among("\u03B1\u03BF\u03C1", -1, 1),
- new Among("\u03B3\u03C5\u03C1", -1, 1),
- new Among("\u03C7\u03C1", -1, 1),
- new Among("\u03C7\u03C9\u03C1", -1, 1),
- new Among("\u03BA\u03C4", -1, 1),
- new Among("\u03B1\u03BA\u03C4", 25, 1),
- new Among("\u03C7\u03C4", -1, 1),
- new Among("\u03B1\u03C7\u03C4", 27, 1),
- new Among("\u03C4\u03B1\u03C7", -1, 1),
- new Among("\u03C3\u03C7", -1, 1),
- new Among("\u03B1\u03C3\u03C7", 30, 1),
- new Among("\u03C5\u03C8", -1, 1)
+ new Among("\u03B1\u03C3\u03B5", 10, 1),
+ new Among("\u03BA\u03B1\u03B8", -1, 2),
+ new Among("\u03B5\u03C7\u03B8", -1, 2),
+ new Among("\u03BA\u03B1\u03BA", -1, 2),
+ new Among("\u03BC\u03B1\u03BA", -1, 2),
+ new Among("\u03C3\u03BA", -1, 2),
+ new Among("\u03C6\u03B9\u03BB", -1, 2),
+ new Among("\u03BA\u03C5\u03BB", -1, 2),
+ new Among("\u03BC", -1, 2),
+ new Among("\u03B3\u03B5\u03BC", 19, 2),
+ new Among("\u03B1\u03C7\u03BD", -1, 2),
+ new Among("\u03C3\u03C5\u03BD\u03B1\u03B8\u03C1\u03BF", -1, 1),
+ new Among("\u03C0", -1, 2),
+ new Among("\u03B1\u03C0", 23, 2),
+ new Among("\u03B5\u03BC\u03C0", 23, 2),
+ new Among("\u03B5\u03C5\u03C0", 23, 2),
+ new Among("\u03B1\u03C1", -1, 2),
+ new Among("\u03B1\u03BF\u03C1", -1, 2),
+ new Among("\u03B3\u03C5\u03C1", -1, 2),
+ new Among("\u03C7\u03C1", -1, 2),
+ new Among("\u03C7\u03C9\u03C1", -1, 2),
+ new Among("\u03BA\u03C4", -1, 2),
+ new Among("\u03B1\u03BA\u03C4", 32, 2),
+ new Among("\u03C7\u03C4", -1, 2),
+ new Among("\u03B1\u03C7\u03C4", 34, 2),
+ new Among("\u03C4\u03B1\u03C7", -1, 2),
+ new Among("\u03C3\u03C7", -1, 2),
+ new Among("\u03B1\u03C3\u03C7", 37, 2),
+ new Among("\u03C5\u03C8", -1, 2)
};
- private static final Among a_14[] = {
+ private static final Among a_11[] = {
new Among("\u03B9\u03C3\u03C4\u03B1", -1, 1),
new Among("\u03B9\u03C3\u03C4\u03B5", -1, 1),
new Among("\u03B9\u03C3\u03C4\u03B7", -1, 1),
@@ -323,20 +314,17 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03C3\u03C4\u03BF\u03C5", -1, 1)
};
- private static final Among a_15[] = {
+ private static final Among a_12[] = {
new Among("\u03B5\u03B3\u03BA\u03BB\u03B5", -1, 1),
new Among("\u03B1\u03C0\u03BF\u03BA\u03BB\u03B5", -1, 1),
+ new Among("\u03B4\u03B1\u03BD\u03B5", -1, 2),
+ new Among("\u03B1\u03BD\u03C4\u03B9\u03B4\u03B1\u03BD\u03B5", 2, 2),
new Among("\u03C3\u03B5", -1, 1),
- new Among("\u03BC\u03B5\u03C4\u03B1\u03C3\u03B5", 2, 1),
- new Among("\u03BC\u03B9\u03BA\u03C1\u03BF\u03C3\u03B5", 2, 1)
- };
-
- private static final Among a_16[] = {
- new Among("\u03B4\u03B1\u03BD\u03B5", -1, 1),
- new Among("\u03B1\u03BD\u03C4\u03B9\u03B4\u03B1\u03BD\u03B5", 0, 1)
+ new Among("\u03BC\u03B5\u03C4\u03B1\u03C3\u03B5", 4, 1),
+ new Among("\u03BC\u03B9\u03BA\u03C1\u03BF\u03C3\u03B5", 4, 1)
};
- private static final Among a_17[] = {
+ private static final Among a_13[] = {
new Among("\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA", -1, 2),
new Among("\u03B5\u03B8\u03BD\u03B9\u03BA", -1, 4),
new Among("\u03C4\u03BF\u03C0\u03B9\u03BA", -1, 7),
@@ -349,7 +337,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B2\u03C5\u03B6\u03B1\u03BD\u03C4\u03B9\u03BD", -1, 9)
};
- private static final Among a_18[] = {
+ private static final Among a_14[] = {
new Among("\u03B9\u03C3\u03BC\u03BF\u03B9", -1, 1),
new Among("\u03B9\u03C3\u03BC\u03C9\u03BD", -1, 1),
new Among("\u03B9\u03C3\u03BC\u03BF", -1, 1),
@@ -358,70 +346,65 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03C3\u03BC\u03BF\u03C5", -1, 1)
};
- private static final Among a_19[] = {new Among("\u03C3", -1, 1), new Among("\u03C7", -1, 1)};
+ private static final Among a_15[] = {new Among("\u03C3", -1, 1), new Among("\u03C7", -1, 1)};
- private static final Among a_20[] = {
+ private static final Among a_16[] = {
new Among("\u03BF\u03C5\u03B4\u03B1\u03BA\u03B9\u03B1", -1, 1),
new Among("\u03B1\u03C1\u03B1\u03BA\u03B9\u03B1", -1, 1),
new Among("\u03BF\u03C5\u03B4\u03B1\u03BA\u03B9", -1, 1),
new Among("\u03B1\u03C1\u03B1\u03BA\u03B9", -1, 1)
};
- private static final Among a_21[] = {
- new Among("\u03B2\u03B1\u03BC\u03B2", -1, 1),
- new Among("\u03C3\u03BB\u03BF\u03B2", -1, 1),
- new Among("\u03C4\u03C3\u03B5\u03C7\u03BF\u03C3\u03BB\u03BF\u03B2", 1, 1),
- new Among("\u03C4\u03B6", -1, 1),
+ private static final Among a_17[] = {
+ new Among("\u03B2", -1, 2),
+ new Among("\u03B2\u03B1\u03BC\u03B2", 0, 1),
+ new Among("\u03C3\u03BB\u03BF\u03B2", 0, 1),
+ new Among("\u03C4\u03C3\u03B5\u03C7\u03BF\u03C3\u03BB\u03BF\u03B2", 2, 1),
+ new Among("\u03BA\u03B1\u03C1\u03B4", -1, 2),
+ new Among("\u03B6", -1, 2),
+ new Among("\u03C4\u03B6", 5, 1),
new Among("\u03BA", -1, 1),
- new Among("\u03BA\u03B1\u03C0\u03B1\u03BA", 4, 1),
- new Among("\u03C3\u03BF\u03BA", 4, 1),
- new Among("\u03C3\u03BA", 4, 1),
+ new Among("\u03BA\u03B1\u03C0\u03B1\u03BA", 7, 1),
+ new Among("\u03C3\u03BF\u03BA", 7, 1),
+ new Among("\u03C3\u03BA", 7, 1),
+ new Among("\u03B2\u03B1\u03BB", -1, 2),
new Among("\u03BC\u03B1\u03BB", -1, 1),
+ new Among("\u03B3\u03BB", -1, 2),
+ new Among("\u03C4\u03C1\u03B9\u03C0\u03BF\u03BB", -1, 2),
new Among("\u03C0\u03BB", -1, 1),
new Among("\u03BB\u03BF\u03C5\u03BB", -1, 1),
new Among("\u03C6\u03C5\u03BB", -1, 1),
new Among("\u03BA\u03B1\u03B9\u03BC", -1, 1),
new Among("\u03BA\u03BB\u03B9\u03BC", -1, 1),
new Among("\u03C6\u03B1\u03C1\u03BC", -1, 1),
+ new Among("\u03B3\u03B9\u03B1\u03BD", -1, 2),
new Among("\u03C3\u03C0\u03B1\u03BD", -1, 1),
+ new Among("\u03B7\u03B3\u03BF\u03C5\u03BC\u03B5\u03BD", -1, 2),
new Among("\u03BA\u03BF\u03BD", -1, 1),
- new Among("\u03BA\u03B1\u03C4\u03C1\u03B1\u03C0", -1, 1),
+ new Among("\u03BC\u03B1\u03BA\u03C1\u03C5\u03BD", -1, 2),
+ new Among("\u03C0", -1, 2),
+ new Among("\u03BA\u03B1\u03C4\u03C1\u03B1\u03C0", 26, 1),
new Among("\u03C1", -1, 1),
- new Among("\u03B2\u03C1", 18, 1),
- new Among("\u03BB\u03B1\u03B2\u03C1", 19, 1),
- new Among("\u03B1\u03BC\u03B2\u03C1", 19, 1),
- new Among("\u03BC\u03B5\u03C1", 18, 1),
- new Among("\u03B1\u03BD\u03B8\u03C1", 18, 1),
- new Among("\u03BA\u03BF\u03C1", 18, 1),
+ new Among("\u03B2\u03C1", 28, 1),
+ new Among("\u03BB\u03B1\u03B2\u03C1", 29, 1),
+ new Among("\u03B1\u03BC\u03B2\u03C1", 29, 1),
+ new Among("\u03BC\u03B5\u03C1", 28, 1),
+ new Among("\u03C0\u03B1\u03C4\u03B5\u03C1", 28, 2),
+ new Among("\u03B1\u03BD\u03B8\u03C1", 28, 1),
+ new Among("\u03BA\u03BF\u03C1", 28, 1),
new Among("\u03C3", -1, 1),
- new Among("\u03BD\u03B1\u03B3\u03BA\u03B1\u03C3", 25, 1),
+ new Among("\u03BD\u03B1\u03B3\u03BA\u03B1\u03C3", 36, 1),
+ new Among("\u03C4\u03BF\u03C3", 36, 2),
new Among("\u03BC\u03BF\u03C5\u03C3\u03C4", -1, 1),
new Among("\u03C1\u03C5", -1, 1),
new Among("\u03C6", -1, 1),
- new Among("\u03C3\u03C6", 29, 1),
- new Among("\u03B1\u03BB\u03B9\u03C3\u03C6", 30, 1),
+ new Among("\u03C3\u03C6", 41, 1),
+ new Among("\u03B1\u03BB\u03B9\u03C3\u03C6", 42, 1),
+ new Among("\u03BD\u03C5\u03C6", 41, 2),
new Among("\u03C7", -1, 1)
};
- private static final Among a_22[] = {
- new Among("\u03B2", -1, 1),
- new Among("\u03BA\u03B1\u03C1\u03B4", -1, 1),
- new Among("\u03B6", -1, 1),
- new Among("\u03C3\u03BA", -1, 1),
- new Among("\u03B2\u03B1\u03BB", -1, 1),
- new Among("\u03B3\u03BB", -1, 1),
- new Among("\u03C4\u03C1\u03B9\u03C0\u03BF\u03BB", -1, 1),
- new Among("\u03B3\u03B9\u03B1\u03BD", -1, 1),
- new Among("\u03B7\u03B3\u03BF\u03C5\u03BC\u03B5\u03BD", -1, 1),
- new Among("\u03BA\u03BF\u03BD", -1, 1),
- new Among("\u03BC\u03B1\u03BA\u03C1\u03C5\u03BD", -1, 1),
- new Among("\u03C0", -1, 1),
- new Among("\u03C0\u03B1\u03C4\u03B5\u03C1", -1, 1),
- new Among("\u03C4\u03BF\u03C3", -1, 1),
- new Among("\u03BD\u03C5\u03C6", -1, 1)
- };
-
- private static final Among a_23[] = {
+ private static final Among a_18[] = {
new Among("\u03B1\u03BA\u03B9\u03B1", -1, 1),
new Among("\u03B1\u03C1\u03B1\u03BA\u03B9\u03B1", 0, 1),
new Among("\u03B9\u03C4\u03C3\u03B1", -1, 1),
@@ -432,24 +415,24 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03C4\u03C3\u03B5\u03C3", -1, 1)
};
- private static final Among a_24[] = {
+ private static final Among a_19[] = {
new Among("\u03C8\u03B1\u03BB", -1, 1),
new Among("\u03B1\u03B9\u03C6\u03BD", -1, 1),
new Among("\u03BF\u03BB\u03BF", -1, 1),
new Among("\u03B9\u03C1", -1, 1)
};
- private static final Among a_25[] = {
+ private static final Among a_20[] = {
new Among("\u03B5", -1, 1), new Among("\u03C0\u03B1\u03B9\u03C7\u03BD", -1, 1)
};
- private static final Among a_26[] = {
+ private static final Among a_21[] = {
new Among("\u03B9\u03B4\u03B9\u03B1", -1, 1),
new Among("\u03B9\u03B4\u03B9\u03C9\u03BD", -1, 1),
new Among("\u03B9\u03B4\u03B9\u03BF", -1, 1)
};
- private static final Among a_27[] = {
+ private static final Among a_22[] = {
new Among("\u03B9\u03B2", -1, 1),
new Among("\u03B4", -1, 1),
new Among("\u03C6\u03C1\u03B1\u03B3\u03BA", -1, 1),
@@ -459,18 +442,18 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C1", -1, 1)
};
- private static final Among a_28[] = {
+ private static final Among a_23[] = {
new Among("\u03B9\u03C3\u03BA\u03B5", -1, 1),
new Among("\u03B9\u03C3\u03BA\u03BF", -1, 1),
new Among("\u03B9\u03C3\u03BA\u03BF\u03C3", -1, 1),
new Among("\u03B9\u03C3\u03BA\u03BF\u03C5", -1, 1)
};
- private static final Among a_29[] = {
+ private static final Among a_24[] = {
new Among("\u03B1\u03B4\u03C9\u03BD", -1, 1), new Among("\u03B1\u03B4\u03B5\u03C3", -1, 1)
};
- private static final Among a_30[] = {
+ private static final Among a_25[] = {
new Among("\u03B3\u03B9\u03B1\u03B3\u03B9", -1, -1),
new Among("\u03B8\u03B5\u03B9", -1, -1),
new Among("\u03BF\u03BA", -1, -1),
@@ -483,11 +466,11 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BD\u03C4\u03B1\u03BD\u03C4", -1, -1)
};
- private static final Among a_31[] = {
+ private static final Among a_26[] = {
new Among("\u03B5\u03B4\u03C9\u03BD", -1, 1), new Among("\u03B5\u03B4\u03B5\u03C3", -1, 1)
};
- private static final Among a_32[] = {
+ private static final Among a_27[] = {
new Among("\u03BC\u03B9\u03BB", -1, 1),
new Among("\u03B4\u03B1\u03C0", -1, 1),
new Among("\u03B3\u03B7\u03C0", -1, 1),
@@ -498,12 +481,12 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C5\u03C0", -1, 1)
};
- private static final Among a_33[] = {
+ private static final Among a_28[] = {
new Among("\u03BF\u03C5\u03B4\u03C9\u03BD", -1, 1),
new Among("\u03BF\u03C5\u03B4\u03B5\u03C3", -1, 1)
};
- private static final Among a_34[] = {
+ private static final Among a_29[] = {
new Among("\u03C4\u03C1\u03B1\u03B3", -1, 1),
new Among("\u03C6\u03B5", -1, 1),
new Among("\u03BA\u03B1\u03BB\u03B9\u03B1\u03BA", -1, 1),
@@ -521,11 +504,11 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BB\u03B9\u03C7", -1, 1)
};
- private static final Among a_35[] = {
+ private static final Among a_30[] = {
new Among("\u03B5\u03C9\u03BD", -1, 1), new Among("\u03B5\u03C9\u03C3", -1, 1)
};
- private static final Among a_36[] = {
+ private static final Among a_31[] = {
new Among("\u03B4", -1, 1),
new Among("\u03B9\u03B4", 0, 1),
new Among("\u03B8", -1, 1),
@@ -536,20 +519,20 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C0\u03B1\u03C1", -1, 1)
};
- private static final Among a_37[] = {
+ private static final Among a_32[] = {
new Among("\u03B9\u03B1", -1, 1),
new Among("\u03B9\u03C9\u03BD", -1, 1),
new Among("\u03B9\u03BF\u03C5", -1, 1)
};
- private static final Among a_38[] = {
+ private static final Among a_33[] = {
new Among("\u03B9\u03BA\u03B1", -1, 1),
new Among("\u03B9\u03BA\u03C9\u03BD", -1, 1),
new Among("\u03B9\u03BA\u03BF", -1, 1),
new Among("\u03B9\u03BA\u03BF\u03C5", -1, 1)
};
- private static final Among a_39[] = {
+ private static final Among a_34[] = {
new Among("\u03B1\u03B4", -1, 1),
new Among("\u03C3\u03C5\u03BD\u03B1\u03B4", 0, 1),
new Among("\u03BA\u03B1\u03C4\u03B1\u03B4", 0, 1),
@@ -588,7 +571,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C3\u03B5\u03C1\u03C4", -1, 1)
};
- private static final Among a_40[] = {
+ private static final Among a_35[] = {
new Among("\u03B1\u03B3\u03B1\u03BC\u03B5", -1, 1),
new Among("\u03B7\u03BA\u03B1\u03BC\u03B5", -1, 1),
new Among("\u03B7\u03B8\u03B7\u03BA\u03B1\u03BC\u03B5", 1, 1),
@@ -596,7 +579,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BF\u03C5\u03C3\u03B1\u03BC\u03B5", -1, 1)
};
- private static final Among a_41[] = {
+ private static final Among a_36[] = {
new Among("\u03B2\u03BF\u03C5\u03B2", -1, 1),
new Among("\u03BE\u03B5\u03B8", -1, 1),
new Among("\u03C0\u03B5\u03B8", -1, 1),
@@ -611,11 +594,11 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C3\u03B9\u03C7", 10, 1)
};
- private static final Among a_42[] = {
+ private static final Among a_37[] = {
new Among("\u03C4\u03C1", -1, 1), new Among("\u03C4\u03C3", -1, 1)
};
- private static final Among a_43[] = {
+ private static final Among a_38[] = {
new Among("\u03B1\u03B3\u03B1\u03BD\u03B5", -1, 1),
new Among("\u03B7\u03BA\u03B1\u03BD\u03B5", -1, 1),
new Among("\u03B7\u03B8\u03B7\u03BA\u03B1\u03BD\u03B5", 1, 1),
@@ -629,7 +612,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B9\u03BF\u03C4\u03B1\u03BD\u03B5", 9, 1)
};
- private static final Among a_44[] = {
+ private static final Among a_39[] = {
new Among("\u03C4\u03B1\u03B2", -1, 1),
new Among("\u03BD\u03C4\u03B1\u03B2", 0, 1),
new Among("\u03C8\u03B7\u03BB\u03BF\u03C4\u03B1\u03B2", 0, 1),
@@ -727,9 +710,9 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BB\u03B9\u03C7", 87, 1)
};
- private static final Among a_45[] = {new Among("\u03B7\u03C3\u03B5\u03C4\u03B5", -1, 1)};
+ private static final Among a_40[] = {new Among("\u03B7\u03C3\u03B5\u03C4\u03B5", -1, 1)};
- private static final Among a_46[] = {
+ private static final Among a_41[] = {
new Among("\u03B5\u03BD\u03B4", -1, 1),
new Among("\u03C3\u03C5\u03BD\u03B4", -1, 1),
new Among("\u03BF\u03B4", -1, 1),
@@ -763,7 +746,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C3\u03C7", -1, 1)
};
- private static final Among a_47[] = {
+ private static final Among a_42[] = {
new Among("\u03C0\u03B1\u03B3", -1, 1),
new Among("\u03B4", -1, 1),
new Among("\u03B1\u03B4", 1, 1),
@@ -791,17 +774,17 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C3\u03C5\u03C1\u03C6", -1, 1)
};
- private static final Among a_48[] = {
+ private static final Among a_43[] = {
new Among("\u03BF\u03BD\u03C4\u03B1\u03C3", -1, 1),
new Among("\u03C9\u03BD\u03C4\u03B1\u03C3", -1, 1)
};
- private static final Among a_49[] = {
+ private static final Among a_44[] = {
new Among("\u03BF\u03BC\u03B1\u03C3\u03C4\u03B5", -1, 1),
new Among("\u03B9\u03BF\u03BC\u03B1\u03C3\u03C4\u03B5", 0, 1)
};
- private static final Among a_50[] = {
+ private static final Among a_45[] = {
new Among("\u03C0", -1, 1),
new Among("\u03B1\u03C0", 0, 1),
new Among("\u03B1\u03BA\u03B1\u03C4\u03B1\u03C0", 1, 1),
@@ -810,7 +793,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B1\u03BC\u03B5\u03C4\u03B1\u03BC\u03C6", -1, 1)
};
- private static final Among a_51[] = {
+ private static final Among a_46[] = {
new Among("\u03B6", -1, 1),
new Among("\u03B1\u03BB", -1, 1),
new Among("\u03C0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB", 1, 1),
@@ -822,13 +805,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BD\u03B9\u03C3", -1, 1)
};
- private static final Among a_52[] = {
+ private static final Among a_47[] = {
new Among("\u03B7\u03B8\u03B7\u03BA\u03B1", -1, 1),
new Among("\u03B7\u03B8\u03B7\u03BA\u03B5", -1, 1),
new Among("\u03B7\u03B8\u03B7\u03BA\u03B5\u03C3", -1, 1)
};
- private static final Among a_53[] = {
+ private static final Among a_48[] = {
new Among("\u03C0\u03B9\u03B8", -1, 1),
new Among("\u03BF\u03B8", -1, 1),
new Among("\u03BD\u03B1\u03C1\u03B8", -1, 1),
@@ -837,7 +820,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C3\u03C6", -1, 1)
};
- private static final Among a_54[] = {
+ private static final Among a_49[] = {
new Among("\u03B8", -1, 1),
new Among("\u03B4\u03B9\u03B1\u03B8", 0, 1),
new Among("\u03C0\u03B1\u03C1\u03B1\u03BA\u03B1\u03C4\u03B1\u03B8", 0, 1),
@@ -845,13 +828,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C0\u03C1\u03BF\u03C3\u03B8", 0, 1)
};
- private static final Among a_55[] = {
+ private static final Among a_50[] = {
new Among("\u03B7\u03BA\u03B1", -1, 1),
new Among("\u03B7\u03BA\u03B5", -1, 1),
new Among("\u03B7\u03BA\u03B5\u03C3", -1, 1)
};
- private static final Among a_56[] = {
+ private static final Among a_51[] = {
new Among("\u03C6\u03B1\u03B3", -1, 1),
new Among("\u03BB\u03B7\u03B3", -1, 1),
new Among("\u03C6\u03C1\u03C5\u03B4", -1, 1),
@@ -866,7 +849,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C0\u03B1\u03BD\u03C4\u03B1\u03C7", -1, 1)
};
- private static final Among a_57[] = {
+ private static final Among a_52[] = {
new Among("\u03C4\u03C3\u03B1", -1, 1),
new Among("\u03C7\u03B1\u03B4", -1, 1),
new Among("\u03BC\u03B5\u03B4", -1, 1),
@@ -894,18 +877,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BB\u03B5\u03C7", -1, 1)
};
- private static final Among a_58[] = {
+ private static final Among a_53[] = {
new Among("\u03BF\u03C5\u03C3\u03B1", -1, 1),
new Among("\u03BF\u03C5\u03C3\u03B5", -1, 1),
new Among("\u03BF\u03C5\u03C3\u03B5\u03C3", -1, 1)
};
- private static final Among a_59[] = {
- new Among("\u03C8\u03BF\u03C6", -1, -1),
- new Among("\u03BD\u03B1\u03C5\u03BB\u03BF\u03C7", -1, -1)
- };
-
- private static final Among a_60[] = {
+ private static final Among a_54[] = {
new Among("\u03C0\u03B5\u03BB", -1, 1),
new Among("\u03BB\u03BB", -1, 1),
new Among("\u03C3\u03BC\u03B7\u03BD", -1, 1),
@@ -914,11 +892,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C6\u03C1", -1, 1),
new Among("\u03C7\u03BF\u03C1\u03C4", -1, 1),
new Among("\u03BF\u03C6", -1, 1),
+ new Among("\u03C8\u03BF\u03C6", 7, -1),
new Among("\u03C3\u03C6", -1, 1),
- new Among("\u03BB\u03BF\u03C7", -1, 1)
+ new Among("\u03BB\u03BF\u03C7", -1, 1),
+ new Among("\u03BD\u03B1\u03C5\u03BB\u03BF\u03C7", 10, -1)
};
- private static final Among a_61[] = {
+ private static final Among a_55[] = {
new Among("\u03B1\u03BC\u03B1\u03BB\u03BB\u03B9", -1, 1),
new Among("\u03BB", -1, 1),
new Among("\u03B1\u03BC\u03B1\u03BB", 1, 1),
@@ -965,19 +945,19 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C0\u03BF\u03BB\u03C5\u03C6", -1, 1)
};
- private static final Among a_62[] = {
+ private static final Among a_56[] = {
new Among("\u03B1\u03B3\u03B1", -1, 1),
new Among("\u03B1\u03B3\u03B5", -1, 1),
new Among("\u03B1\u03B3\u03B5\u03C3", -1, 1)
};
- private static final Among a_63[] = {
+ private static final Among a_57[] = {
new Among("\u03B7\u03C3\u03B1", -1, 1),
new Among("\u03B7\u03C3\u03B5", -1, 1),
new Among("\u03B7\u03C3\u03BF\u03C5", -1, 1)
};
- private static final Among a_64[] = {
+ private static final Among a_58[] = {
new Among("\u03BD", -1, 1),
new Among("\u03B4\u03C9\u03B4\u03B5\u03BA\u03B1\u03BD", 0, 1),
new Among("\u03B5\u03C0\u03C4\u03B1\u03BD", 0, 1),
@@ -986,9 +966,9 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C7\u03B5\u03C1\u03C3\u03BF\u03BD", 0, 1)
};
- private static final Among a_65[] = {new Among("\u03B7\u03C3\u03C4\u03B5", -1, 1)};
+ private static final Among a_59[] = {new Among("\u03B7\u03C3\u03C4\u03B5", -1, 1)};
- private static final Among a_66[] = {
+ private static final Among a_60[] = {
new Among("\u03C3\u03B2", -1, 1),
new Among("\u03B1\u03C3\u03B2", 0, 1),
new Among("\u03B1\u03C0\u03BB", -1, 1),
@@ -1001,13 +981,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C0\u03B1\u03BB\u03B9\u03BC\u03C8", -1, 1)
};
- private static final Among a_67[] = {
+ private static final Among a_61[] = {
new Among("\u03BF\u03C5\u03BD\u03B5", -1, 1),
new Among("\u03B7\u03B8\u03BF\u03C5\u03BD\u03B5", 0, 1),
new Among("\u03B7\u03C3\u03BF\u03C5\u03BD\u03B5", 0, 1)
};
- private static final Among a_68[] = {
+ private static final Among a_62[] = {
new Among("\u03C3\u03C0\u03B9", -1, 1),
new Among("\u03BD", -1, 1),
new Among("\u03B5\u03BE\u03C9\u03BD", 1, 1),
@@ -1016,13 +996,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03BA\u03B1\u03BA\u03BF\u03BC\u03BF\u03C5\u03C4\u03C3", -1, 1)
};
- private static final Among a_69[] = {
+ private static final Among a_63[] = {
new Among("\u03BF\u03C5\u03BC\u03B5", -1, 1),
new Among("\u03B7\u03B8\u03BF\u03C5\u03BC\u03B5", 0, 1),
new Among("\u03B7\u03C3\u03BF\u03C5\u03BC\u03B5", 0, 1)
};
- private static final Among a_70[] = {
+ private static final Among a_64[] = {
new Among("\u03B1\u03B6", -1, 1),
new Among("\u03C9\u03C1\u03B9\u03BF\u03C0\u03BB", -1, 1),
new Among("\u03B1\u03C3\u03BF\u03C5\u03C3", -1, 1),
@@ -1032,13 +1012,13 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03C7", -1, 1)
};
- private static final Among a_71[] = {
+ private static final Among a_65[] = {
new Among("\u03BC\u03B1\u03C4\u03B1", -1, 1),
new Among("\u03BC\u03B1\u03C4\u03C9\u03BD", -1, 1),
new Among("\u03BC\u03B1\u03C4\u03BF\u03C3", -1, 1)
};
- private static final Among a_72[] = {
+ private static final Among a_66[] = {
new Among("\u03B1", -1, 1),
new Among("\u03B9\u03BF\u03C5\u03BC\u03B1", 0, 1),
new Among("\u03BF\u03BC\u03BF\u03C5\u03BD\u03B1", 0, 1),
@@ -1125,7 +1105,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u03B7\u03C3\u03C9", 80, 1)
};
- private static final Among a_73[] = {
+ private static final Among a_67[] = {
new Among("\u03BF\u03C4\u03B5\u03C1", -1, 1),
new Among("\u03B5\u03C3\u03C4\u03B5\u03C1", -1, 1),
new Among("\u03C5\u03C4\u03B5\u03C1", -1, 1),
@@ -1143,10 +1123,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean B_test1;
private boolean r_has_min_length() {
- if (!(limit >= 3)) {
- return false;
- }
- return true;
+ return limit >= 3;
}
private boolean r_tolower() {
@@ -1157,9 +1134,6 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
among_var = find_among_b(a_0);
- if (among_var == 0) {
- break lab0;
- }
bra = cursor;
switch (among_var) {
case 1:
@@ -1297,46 +1271,37 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_steps1() {
+ int among_var;
ket = cursor;
- if (find_among_b(a_4) == 0) {
+ if (find_among_b(a_3) == 0) {
return false;
}
bra = cursor;
slice_del();
B_test1 = false;
- lab0:
- {
- int v_1 = limit - cursor;
- lab1:
- {
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_2) == 0) {
- break lab1;
- }
- if (cursor > limit_backward) {
- break lab1;
- }
+ ket = cursor;
+ bra = cursor;
+ among_var = find_among_b(a_2);
+ if (among_var == 0) {
+ return false;
+ }
+ if (cursor > limit_backward) {
+ return false;
+ }
+ switch (among_var) {
+ case 1:
slice_from("\u03B9");
- break lab0;
- }
- cursor = limit - v_1;
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_3) == 0) {
- return false;
- }
- if (cursor > limit_backward) {
- return false;
- }
- slice_from("\u03B9\u03B6");
+ break;
+ case 2:
+ slice_from("\u03B9\u03B6");
+ break;
}
return true;
}
private boolean r_steps2() {
ket = cursor;
- if (find_among_b(a_6) == 0) {
+ if (find_among_b(a_5) == 0) {
return false;
}
bra = cursor;
@@ -1344,7 +1309,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_5) == 0) {
+ if (find_among_b(a_4) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1355,8 +1320,9 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_steps3() {
+ int among_var;
ket = cursor;
- if (find_among_b(a_9) == 0) {
+ if (find_among_b(a_7) == 0) {
return false;
}
bra = cursor;
@@ -1377,36 +1343,30 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab0;
}
cursor = limit - v_1;
- lab2:
- {
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_7) == 0) {
- break lab2;
- }
- if (cursor > limit_backward) {
- break lab2;
- }
- slice_from("\u03B9");
- break lab0;
- }
- cursor = limit - v_1;
ket = cursor;
bra = cursor;
- if (find_among_b(a_8) == 0) {
+ among_var = find_among_b(a_6);
+ if (among_var == 0) {
return false;
}
if (cursor > limit_backward) {
return false;
}
- slice_from("\u03B9\u03C3");
+ switch (among_var) {
+ case 1:
+ slice_from("\u03B9");
+ break;
+ case 2:
+ slice_from("\u03B9\u03C3");
+ break;
+ }
}
return true;
}
private boolean r_steps4() {
ket = cursor;
- if (find_among_b(a_11) == 0) {
+ if (find_among_b(a_9) == 0) {
return false;
}
bra = cursor;
@@ -1414,7 +1374,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_10) == 0) {
+ if (find_among_b(a_8) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1425,39 +1385,30 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_steps5() {
+ int among_var;
ket = cursor;
- if (find_among_b(a_14) == 0) {
+ if (find_among_b(a_11) == 0) {
return false;
}
bra = cursor;
slice_del();
B_test1 = false;
- lab0:
- {
- int v_1 = limit - cursor;
- lab1:
- {
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_12) == 0) {
- break lab1;
- }
- if (cursor > limit_backward) {
- break lab1;
- }
+ ket = cursor;
+ bra = cursor;
+ among_var = find_among_b(a_10);
+ if (among_var == 0) {
+ return false;
+ }
+ if (cursor > limit_backward) {
+ return false;
+ }
+ switch (among_var) {
+ case 1:
slice_from("\u03B9");
- break lab0;
- }
- cursor = limit - v_1;
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_13) == 0) {
- return false;
- }
- if (cursor > limit_backward) {
- return false;
- }
- slice_from("\u03B9\u03C3\u03C4");
+ break;
+ case 2:
+ slice_from("\u03B9\u03C3\u03C4");
+ break;
}
return true;
}
@@ -1465,7 +1416,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_steps6() {
int among_var;
ket = cursor;
- if (find_among_b(a_18) == 0) {
+ if (find_among_b(a_14) == 0) {
return false;
}
bra = cursor;
@@ -1478,32 +1429,26 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
bra = cursor;
- if (find_among_b(a_15) == 0) {
+ among_var = find_among_b(a_12);
+ if (among_var == 0) {
break lab1;
}
if (cursor > limit_backward) {
break lab1;
}
- slice_from("\u03B9\u03C3\u03BC");
- break lab0;
- }
- cursor = limit - v_1;
- lab2:
- {
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_16) == 0) {
- break lab2;
- }
- if (cursor > limit_backward) {
- break lab2;
+ switch (among_var) {
+ case 1:
+ slice_from("\u03B9\u03C3\u03BC");
+ break;
+ case 2:
+ slice_from("\u03B9");
+ break;
}
- slice_from("\u03B9");
break lab0;
}
cursor = limit - v_1;
ket = cursor;
- among_var = find_among_b(a_17);
+ among_var = find_among_b(a_13);
if (among_var == 0) {
return false;
}
@@ -1546,7 +1491,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_steps7() {
ket = cursor;
- if (find_among_b(a_20) == 0) {
+ if (find_among_b(a_16) == 0) {
return false;
}
bra = cursor;
@@ -1554,7 +1499,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_19) == 0) {
+ if (find_among_b(a_15) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1565,8 +1510,9 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_steps8() {
+ int among_var;
ket = cursor;
- if (find_among_b(a_23) == 0) {
+ if (find_among_b(a_18) == 0) {
return false;
}
bra = cursor;
@@ -1579,27 +1525,21 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
bra = cursor;
- if (find_among_b(a_21) == 0) {
+ among_var = find_among_b(a_17);
+ if (among_var == 0) {
break lab1;
}
if (cursor > limit_backward) {
break lab1;
}
- slice_from("\u03B1\u03BA");
- break lab0;
- }
- cursor = limit - v_1;
- lab2:
- {
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_22) == 0) {
- break lab2;
- }
- if (cursor > limit_backward) {
- break lab2;
+ switch (among_var) {
+ case 1:
+ slice_from("\u03B1\u03BA");
+ break;
+ case 2:
+ slice_from("\u03B9\u03C4\u03C3");
+ break;
}
- slice_from("\u03B9\u03C4\u03C3");
break lab0;
}
cursor = limit - v_1;
@@ -1615,7 +1555,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_steps9() {
ket = cursor;
- if (find_among_b(a_26) == 0) {
+ if (find_among_b(a_21) == 0) {
return false;
}
bra = cursor;
@@ -1628,7 +1568,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
bra = cursor;
- if (find_among_b(a_24) == 0) {
+ if (find_among_b(a_19) == 0) {
break lab1;
}
if (cursor > limit_backward) {
@@ -1640,7 +1580,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor = limit - v_1;
ket = cursor;
bra = cursor;
- if (find_among_b(a_25) == 0) {
+ if (find_among_b(a_20) == 0) {
return false;
}
slice_from("\u03B9\u03B4");
@@ -1650,7 +1590,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_steps10() {
ket = cursor;
- if (find_among_b(a_28) == 0) {
+ if (find_among_b(a_23) == 0) {
return false;
}
bra = cursor;
@@ -1658,7 +1598,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_27) == 0) {
+ if (find_among_b(a_22) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1670,7 +1610,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step2a() {
ket = cursor;
- if (find_among_b(a_29) == 0) {
+ if (find_among_b(a_24) == 0) {
return false;
}
bra = cursor;
@@ -1679,11 +1619,9 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
lab0:
{
- ket = cursor;
- if (find_among_b(a_30) == 0) {
+ if (find_among_b(a_25) == 0) {
break lab0;
}
- bra = cursor;
return false;
}
cursor = limit - v_1;
@@ -1698,14 +1636,14 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step2b() {
ket = cursor;
- if (find_among_b(a_31) == 0) {
+ if (find_among_b(a_26) == 0) {
return false;
}
bra = cursor;
slice_del();
ket = cursor;
bra = cursor;
- if (find_among_b(a_32) == 0) {
+ if (find_among_b(a_27) == 0) {
return false;
}
slice_from("\u03B5\u03B4");
@@ -1714,14 +1652,14 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step2c() {
ket = cursor;
- if (find_among_b(a_33) == 0) {
+ if (find_among_b(a_28) == 0) {
return false;
}
bra = cursor;
slice_del();
ket = cursor;
bra = cursor;
- if (find_among_b(a_34) == 0) {
+ if (find_among_b(a_29) == 0) {
return false;
}
slice_from("\u03BF\u03C5\u03B4");
@@ -1730,7 +1668,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step2d() {
ket = cursor;
- if (find_among_b(a_35) == 0) {
+ if (find_among_b(a_30) == 0) {
return false;
}
bra = cursor;
@@ -1738,7 +1676,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_36) == 0) {
+ if (find_among_b(a_31) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1750,7 +1688,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step3() {
ket = cursor;
- if (find_among_b(a_37) == 0) {
+ if (find_among_b(a_32) == 0) {
return false;
}
bra = cursor;
@@ -1767,7 +1705,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step4() {
ket = cursor;
- if (find_among_b(a_38) == 0) {
+ if (find_among_b(a_33) == 0) {
return false;
}
bra = cursor;
@@ -1790,7 +1728,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
}
bra = cursor;
- if (find_among_b(a_39) == 0) {
+ if (find_among_b(a_34) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1817,7 +1755,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
lab1:
{
ket = cursor;
- if (find_among_b(a_40) == 0) {
+ if (find_among_b(a_35) == 0) {
break lab1;
}
bra = cursor;
@@ -1834,7 +1772,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_41) == 0) {
+ if (find_among_b(a_36) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1849,7 +1787,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
ket = cursor;
- if (find_among_b(a_43) == 0) {
+ if (find_among_b(a_38) == 0) {
break lab0;
}
bra = cursor;
@@ -1857,7 +1795,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_42) == 0) {
+ if (find_among_b(a_37) == 0) {
break lab0;
}
if (cursor > limit_backward) {
@@ -1890,7 +1828,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
}
bra = cursor;
- if (find_among_b(a_44) == 0) {
+ if (find_among_b(a_39) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1905,7 +1843,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
ket = cursor;
- if (find_among_b(a_45) == 0) {
+ if (find_among_b(a_40) == 0) {
break lab0;
}
bra = cursor;
@@ -1938,7 +1876,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
bra = cursor;
- if (find_among_b(a_46) == 0) {
+ if (find_among_b(a_41) == 0) {
break lab3;
}
slice_from("\u03B5\u03C4");
@@ -1948,7 +1886,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
}
bra = cursor;
- if (find_among_b(a_47) == 0) {
+ if (find_among_b(a_42) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -1960,7 +1898,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5d() {
ket = cursor;
- if (find_among_b(a_48) == 0) {
+ if (find_among_b(a_43) == 0) {
return false;
}
bra = cursor;
@@ -1995,7 +1933,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5e() {
ket = cursor;
- if (find_among_b(a_49) == 0) {
+ if (find_among_b(a_44) == 0) {
return false;
}
bra = cursor;
@@ -2026,7 +1964,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_50) == 0) {
+ if (find_among_b(a_45) == 0) {
break lab0;
}
if (cursor > limit_backward) {
@@ -2044,7 +1982,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_51) == 0) {
+ if (find_among_b(a_46) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2059,7 +1997,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
ket = cursor;
- if (find_among_b(a_52) == 0) {
+ if (find_among_b(a_47) == 0) {
break lab0;
}
bra = cursor;
@@ -2068,7 +2006,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
}
cursor = limit - v_1;
ket = cursor;
- if (find_among_b(a_55) == 0) {
+ if (find_among_b(a_50) == 0) {
return false;
}
bra = cursor;
@@ -2081,7 +2019,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
bra = cursor;
- if (find_among_b(a_53) == 0) {
+ if (find_among_b(a_48) == 0) {
break lab2;
}
slice_from("\u03B7\u03BA");
@@ -2090,7 +2028,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor = limit - v_2;
ket = cursor;
bra = cursor;
- if (find_among_b(a_54) == 0) {
+ if (find_among_b(a_49) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2103,7 +2041,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5h() {
ket = cursor;
- if (find_among_b(a_58) == 0) {
+ if (find_among_b(a_53) == 0) {
return false;
}
bra = cursor;
@@ -2116,7 +2054,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
{
ket = cursor;
bra = cursor;
- if (find_among_b(a_56) == 0) {
+ if (find_among_b(a_51) == 0) {
break lab1;
}
slice_from("\u03BF\u03C5\u03C3");
@@ -2125,7 +2063,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor = limit - v_1;
ket = cursor;
bra = cursor;
- if (find_among_b(a_57) == 0) {
+ if (find_among_b(a_52) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2137,8 +2075,9 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_step5i() {
+ int among_var;
ket = cursor;
- if (find_among_b(a_62) == 0) {
+ if (find_among_b(a_56) == 0) {
return false;
}
bra = cursor;
@@ -2158,36 +2097,28 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab0;
}
cursor = limit - v_1;
+ lab2:
{
int v_2 = limit - cursor;
- lab2:
+ lab3:
{
ket = cursor;
- if (find_among_b(a_59) == 0) {
- break lab2;
- }
bra = cursor;
- return false;
- }
- cursor = limit - v_2;
- }
- lab3:
- {
- int v_3 = limit - cursor;
- lab4:
- {
- ket = cursor;
- bra = cursor;
- if (find_among_b(a_60) == 0) {
- break lab4;
+ among_var = find_among_b(a_54);
+ if (among_var == 0) {
+ break lab3;
}
- slice_from("\u03B1\u03B3");
- break lab3;
+ switch (among_var) {
+ case 1:
+ slice_from("\u03B1\u03B3");
+ break;
+ }
+ break lab2;
}
- cursor = limit - v_3;
+ cursor = limit - v_2;
ket = cursor;
bra = cursor;
- if (find_among_b(a_61) == 0) {
+ if (find_among_b(a_55) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2201,7 +2132,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5j() {
ket = cursor;
- if (find_among_b(a_63) == 0) {
+ if (find_among_b(a_57) == 0) {
return false;
}
bra = cursor;
@@ -2209,7 +2140,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_64) == 0) {
+ if (find_among_b(a_58) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2221,7 +2152,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5k() {
ket = cursor;
- if (find_among_b(a_65) == 0) {
+ if (find_among_b(a_59) == 0) {
return false;
}
bra = cursor;
@@ -2229,7 +2160,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_66) == 0) {
+ if (find_among_b(a_60) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2241,7 +2172,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5l() {
ket = cursor;
- if (find_among_b(a_67) == 0) {
+ if (find_among_b(a_61) == 0) {
return false;
}
bra = cursor;
@@ -2249,7 +2180,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_68) == 0) {
+ if (find_among_b(a_62) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2261,7 +2192,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step5m() {
ket = cursor;
- if (find_among_b(a_69) == 0) {
+ if (find_among_b(a_63) == 0) {
return false;
}
bra = cursor;
@@ -2269,7 +2200,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
B_test1 = false;
ket = cursor;
bra = cursor;
- if (find_among_b(a_70) == 0) {
+ if (find_among_b(a_64) == 0) {
return false;
}
if (cursor > limit_backward) {
@@ -2284,7 +2215,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
ket = cursor;
- if (find_among_b(a_71) == 0) {
+ if (find_among_b(a_65) == 0) {
break lab0;
}
bra = cursor;
@@ -2295,7 +2226,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
ket = cursor;
- if (find_among_b(a_72) == 0) {
+ if (find_among_b(a_66) == 0) {
return false;
}
bra = cursor;
@@ -2305,7 +2236,7 @@ public class GreekStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_step7() {
ket = cursor;
- if (find_among_b(a_73) == 0) {
+ if (find_among_b(a_67) == 0) {
return false;
}
bra = cursor;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HindiStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HindiStemmer.java
index 02fa04f07cb..56203c4c3c7 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HindiStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HindiStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class HindiStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -153,8 +153,6 @@ public class HindiStemmer extends org.tartarus.snowball.SnowballStemmer {
private static final char g_consonant[] = {255, 255, 255, 255, 159, 0, 0, 0, 248, 7};
- private int I_p;
-
public boolean r_CONSONANT() {
if (!(in_grouping_b(g_consonant, 2325, 2399))) {
return false;
@@ -164,27 +162,17 @@ public class HindiStemmer extends org.tartarus.snowball.SnowballStemmer {
@Override
public boolean stem() {
- int v_1 = cursor;
if (cursor >= limit) {
return false;
}
cursor++;
- I_p = cursor;
- cursor = v_1;
limit_backward = cursor;
cursor = limit;
- if (cursor < I_p) {
- return false;
- }
- int v_3 = limit_backward;
- limit_backward = I_p;
ket = cursor;
if (find_among_b(a_0) == 0) {
- limit_backward = v_3;
return false;
}
bra = cursor;
- limit_backward = v_3;
slice_del();
cursor = limit_backward;
return true;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
index 883f92aa886..f07762e4249 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class HungarianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -300,10 +300,7 @@ public class HungarianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_v_ending() {
@@ -345,7 +342,7 @@ public class HungarianStemmer extends org.tartarus.snowball.SnowballStemmer {
ket = cursor;
{
int c = cursor - 1;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java
index e465385a115..5e64001f2f5 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -82,24 +82,21 @@ public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
public boolean r_SUFFIX_KAN_OK() {
- if (!(I_prefix != 3)) {
+ if (I_prefix == 3) {
return false;
}
- if (!(I_prefix != 2)) {
+ if (I_prefix == 2) {
return false;
}
return true;
}
public boolean r_SUFFIX_AN_OK() {
- if (!(I_prefix != 1)) {
- return false;
- }
- return true;
+ return I_prefix != 1;
}
public boolean r_SUFFIX_I_OK() {
- if (!(I_prefix <= 2)) {
+ if (I_prefix > 2) {
return false;
}
{
@@ -281,7 +278,7 @@ public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
}
cursor = v_1;
- if (!(I_measure > 2)) {
+ if (I_measure <= 2) {
return false;
}
I_prefix = 0;
@@ -290,14 +287,14 @@ public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_4 = limit - cursor;
r_remove_particle();
cursor = limit - v_4;
- if (!(I_measure > 2)) {
+ if (I_measure <= 2) {
return false;
}
int v_5 = limit - cursor;
r_remove_possessive_pronoun();
cursor = limit - v_5;
cursor = limit_backward;
- if (!(I_measure > 2)) {
+ if (I_measure <= 2) {
return false;
}
lab4:
@@ -313,7 +310,7 @@ public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
lab6:
{
int v_9 = cursor;
- if (!(I_measure > 2)) {
+ if (I_measure <= 2) {
break lab6;
}
limit_backward = cursor;
@@ -323,7 +320,7 @@ public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
cursor = limit_backward;
cursor = v_9;
- if (!(I_measure > 2)) {
+ if (I_measure <= 2) {
break lab6;
}
if (!r_remove_second_order_prefix()) {
@@ -341,7 +338,7 @@ public class IndonesianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_11 = cursor;
lab7:
{
- if (!(I_measure > 2)) {
+ if (I_measure <= 2) {
break lab7;
}
limit_backward = cursor;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java
index 989a00d7e5d..153810f4e2f 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class IrishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -135,71 +135,52 @@ public class IrishStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor++;
}
I_pV = cursor;
- }
- cursor = v_1;
- int v_3 = cursor;
- lab3:
- {
- golab4:
+ golab3:
while (true) {
- lab5:
- {
- if (!(in_grouping(g_v, 97, 250))) {
- break lab5;
- }
- break golab4;
- }
- if (cursor >= limit) {
- break lab3;
- }
- cursor++;
- }
- golab6:
- while (true) {
- lab7:
+ lab4:
{
if (!(out_grouping(g_v, 97, 250))) {
- break lab7;
+ break lab4;
}
- break golab6;
+ break golab3;
}
if (cursor >= limit) {
- break lab3;
+ break lab0;
}
cursor++;
}
I_p1 = cursor;
- golab8:
+ golab5:
while (true) {
- lab9:
+ lab6:
{
if (!(in_grouping(g_v, 97, 250))) {
- break lab9;
+ break lab6;
}
- break golab8;
+ break golab5;
}
if (cursor >= limit) {
- break lab3;
+ break lab0;
}
cursor++;
}
- golab10:
+ golab7:
while (true) {
- lab11:
+ lab8:
{
if (!(out_grouping(g_v, 97, 250))) {
- break lab11;
+ break lab8;
}
- break golab10;
+ break golab7;
}
if (cursor >= limit) {
- break lab3;
+ break lab0;
}
cursor++;
}
I_p2 = cursor;
}
- cursor = v_3;
+ cursor = v_1;
return true;
}
@@ -247,24 +228,15 @@ public class IrishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_noun_sfx() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
index facab7c3486..68d1e95ede6 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class ItalianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -256,9 +256,6 @@ public class ItalianStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -522,9 +519,6 @@ public class ItalianStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_1);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -549,24 +543,15 @@ public class ItalianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_attached_pronoun() {
@@ -814,44 +799,69 @@ public class ItalianStemmer extends org.tartarus.snowball.SnowballStemmer {
return true;
}
+ private boolean r_exceptions() {
+ bra = cursor;
+ if (!(eq_s("divano"))) {
+ return false;
+ }
+ if (cursor < limit) {
+ return false;
+ }
+ ket = cursor;
+ slice_from("divan");
+ return true;
+ }
+
@Override
public boolean stem() {
- int v_1 = cursor;
- r_prelude();
- cursor = v_1;
- r_mark_regions();
- limit_backward = cursor;
- cursor = limit;
- int v_3 = limit - cursor;
- r_attached_pronoun();
- cursor = limit - v_3;
- int v_4 = limit - cursor;
lab0:
{
+ int v_1 = cursor;
lab1:
{
- int v_5 = limit - cursor;
- lab2:
+ if (!r_exceptions()) {
+ break lab1;
+ }
+ break lab0;
+ }
+ cursor = v_1;
+ int v_2 = cursor;
+ r_prelude();
+ cursor = v_2;
+ r_mark_regions();
+ limit_backward = cursor;
+ cursor = limit;
+ int v_4 = limit - cursor;
+ r_attached_pronoun();
+ cursor = limit - v_4;
+ int v_5 = limit - cursor;
+ lab2:
+ {
+ lab3:
{
- if (!r_standard_suffix()) {
+ int v_6 = limit - cursor;
+ lab4:
+ {
+ if (!r_standard_suffix()) {
+ break lab4;
+ }
+ break lab3;
+ }
+ cursor = limit - v_6;
+ if (!r_verb_suffix()) {
break lab2;
}
- break lab1;
- }
- cursor = limit - v_5;
- if (!r_verb_suffix()) {
- break lab0;
}
}
+ cursor = limit - v_5;
+ int v_7 = limit - cursor;
+ r_vowel_suffix();
+ cursor = limit - v_7;
+ cursor = limit_backward;
+ int v_8 = cursor;
+ r_postlude();
+ cursor = v_8;
}
- cursor = limit - v_4;
- int v_6 = limit - cursor;
- r_vowel_suffix();
- cursor = limit - v_6;
- cursor = limit_backward;
- int v_7 = cursor;
- r_postlude();
- cursor = v_7;
return true;
}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
index f38c358aec0..504427d6c8f 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -127,17 +127,11 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
private java.lang.StringBuilder S_ch = new java.lang.StringBuilder();
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_V() {
@@ -363,9 +357,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
}
bra = cursor;
slice_del();
- if (!r_lengthen_V()) {
- break lab2;
- }
+ r_lengthen_V();
break lab1;
}
cursor = limit - v_2;
@@ -476,9 +468,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
slice_del();
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
}
break;
case 7:
@@ -647,9 +637,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
}
slice_del();
insert(cursor, cursor, "l");
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
break;
case 10:
if (!r_R1()) {
@@ -660,9 +648,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
}
slice_del();
insert(cursor, cursor, "en");
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
break;
case 11:
if (!r_R1()) {
@@ -697,9 +683,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
slice_del();
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
break;
case 3:
if (!r_R1()) {
@@ -725,9 +709,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
}
slice_del();
insert(cursor, cursor, "f");
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
break;
case 7:
if (!r_R2()) {
@@ -735,9 +717,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
}
slice_del();
insert(cursor, cursor, "g");
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
break;
case 8:
if (!r_R1()) {
@@ -840,9 +820,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab1;
}
slice_del();
- if (!r_lengthen_V()) {
- break lab1;
- }
+ r_lengthen_V();
break;
}
break lab0;
@@ -860,9 +838,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
slice_del();
- if (!r_lengthen_V()) {
- return false;
- }
+ r_lengthen_V();
}
return true;
}
@@ -1024,7 +1000,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
@@ -1093,7 +1069,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_2 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
@@ -1293,9 +1269,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
}
}
cursor = v_2;
- if (!r_measure()) {
- return false;
- }
+ r_measure();
limit_backward = cursor;
cursor = limit;
int v_5 = limit - cursor;
@@ -1344,9 +1318,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab9;
}
cursor = v_10;
- if (!r_measure()) {
- break lab9;
- }
+ r_measure();
}
cursor = v_9;
limit_backward = cursor;
@@ -1372,9 +1344,7 @@ public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab11;
}
cursor = v_13;
- if (!r_measure()) {
- break lab11;
- }
+ r_measure();
}
cursor = v_12;
limit_backward = cursor;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java
index 457f24ba83e..f18fbc67ac3 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class LithuanianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -313,13 +313,6 @@ public class LithuanianStemmer extends org.tartarus.snowball.SnowballStemmer {
private int I_p1;
- private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
- }
-
private boolean r_step1() {
if (cursor < I_p1) {
return false;
@@ -333,9 +326,6 @@ public class LithuanianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
bra = cursor;
limit_backward = v_2;
- if (!r_R1()) {
- return false;
- }
slice_del();
return true;
}
@@ -447,13 +437,13 @@ public class LithuanianStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab1;
}
cursor = v_3;
- if (!(limit > 6)) {
+ if (limit <= 6) {
cursor = v_2;
break lab1;
}
{
int c = cursor + 1;
- if (0 > c || c > limit) {
+ if (c > limit) {
cursor = v_2;
break lab1;
}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
index 31dbc99bae7..c0b785c6cdb 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -378,7 +378,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
public boolean r_A() {
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -389,7 +389,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
public boolean r_B() {
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -400,7 +400,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
public boolean r_C() {
{
int c = cursor - 4;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -411,7 +411,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
public boolean r_D() {
{
int c = cursor - 5;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -423,7 +423,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -447,7 +447,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -471,7 +471,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -487,7 +487,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -515,7 +515,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -550,7 +550,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -585,7 +585,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -628,7 +628,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -685,7 +685,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -742,7 +742,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -750,7 +750,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor = limit - v_1;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -776,7 +776,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor = limit - v_2;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -789,7 +789,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -817,7 +817,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -841,7 +841,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -850,7 +850,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_2 = limit - cursor;
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -885,7 +885,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -913,7 +913,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -952,7 +952,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -991,7 +991,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1035,7 +1035,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1051,7 +1051,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1086,7 +1086,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1129,7 +1129,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1145,7 +1145,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1169,7 +1169,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1185,7 +1185,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 3;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
@@ -1220,7 +1220,7 @@ public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
{
int c = cursor - 2;
- if (limit_backward > c || c > limit) {
+ if (c < limit_backward) {
return false;
}
cursor = c;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java
index 385796cbe91..c1ec29999a7 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class NepaliStemmer extends org.tartarus.snowball.SnowballStemmer {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
index 1544358155c..cf11f68db9e 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class NorwegianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -76,7 +76,7 @@ public class NorwegianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
@@ -117,7 +117,7 @@ public class NorwegianStemmer extends org.tartarus.snowball.SnowballStemmer {
I_p1 = cursor;
lab4:
{
- if (!(I_p1 < I_x)) {
+ if (I_p1 >= I_x) {
break lab4;
}
I_p1 = I_x;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java
index 0208d88e73e..dd5cd655a9a 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class PorterStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -117,17 +117,11 @@ public class PorterStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_Step_1a() {
@@ -187,9 +181,6 @@ public class PorterStemmer extends org.tartarus.snowball.SnowballStemmer {
slice_del();
int v_3 = limit - cursor;
among_var = find_among_b(a_1);
- if (among_var == 0) {
- return false;
- }
cursor = limit - v_3;
switch (among_var) {
case 1:
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
index 35eb48e0064..89b9a6c9014 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class PortugueseStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -243,9 +243,6 @@ public class PortugueseStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -444,9 +441,6 @@ public class PortugueseStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_1);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -471,24 +465,15 @@ public class PortugueseStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_standard_suffix() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
index dcf1444e4d9..37d7f83dd6d 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -16,16 +16,18 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
private static final java.lang.invoke.MethodHandles.Lookup methodObject =
java.lang.invoke.MethodHandles.lookup();
- private static final Among a_0[] = {
+ private static final Among a_0[] = {new Among("\u015F", -1, 1), new Among("\u0163", -1, 2)};
+
+ private static final Among a_1[] = {
new Among("", -1, 3), new Among("I", 0, 1), new Among("U", 0, 2)
};
- private static final Among a_1[] = {
+ private static final Among a_2[] = {
new Among("ea", -1, 3),
- new Among("a\u0163ia", -1, 7),
+ new Among("a\u021Bia", -1, 7),
new Among("aua", -1, 2),
new Among("iua", -1, 4),
- new Among("a\u0163ie", -1, 7),
+ new Among("a\u021Bie", -1, 7),
new Among("ele", -1, 3),
new Among("ile", -1, 5),
new Among("iile", 6, 4),
@@ -39,14 +41,14 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("iilor", 14, 4)
};
- private static final Among a_2[] = {
+ private static final Among a_3[] = {
new Among("icala", -1, 4),
new Among("iciva", -1, 4),
new Among("ativa", -1, 5),
new Among("itiva", -1, 6),
new Among("icale", -1, 4),
- new Among("a\u0163iune", -1, 5),
- new Among("i\u0163iune", -1, 6),
+ new Among("a\u021Biune", -1, 5),
+ new Among("i\u021Biune", -1, 6),
new Among("atoare", -1, 5),
new Among("itoare", -1, 6),
new Among("\u0103toare", -1, 5),
@@ -71,9 +73,9 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("icit\u0103i", -1, 4),
new Among("abilit\u0103i", -1, 1),
new Among("ivit\u0103i", -1, 3),
- new Among("icit\u0103\u0163i", -1, 4),
- new Among("abilit\u0103\u0163i", -1, 1),
- new Among("ivit\u0103\u0163i", -1, 3),
+ new Among("icit\u0103\u021Bi", -1, 4),
+ new Among("abilit\u0103\u021Bi", -1, 1),
+ new Among("ivit\u0103\u021Bi", -1, 3),
new Among("ical", -1, 4),
new Among("ator", -1, 5),
new Among("icator", 35, 4),
@@ -88,7 +90,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("itiv\u0103", -1, 6)
};
- private static final Among a_3[] = {
+ private static final Among a_4[] = {
new Among("ica", -1, 1),
new Among("abila", -1, 1),
new Among("ibila", -1, 1),
@@ -125,11 +127,11 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("anti", -1, 1),
new Among("isti", -1, 3),
new Among("uti", -1, 1),
- new Among("i\u015Fti", -1, 3),
+ new Among("i\u0219ti", -1, 3),
new Among("ivi", -1, 1),
new Among("it\u0103i", -1, 1),
- new Among("o\u015Fi", -1, 1),
- new Among("it\u0103\u0163i", -1, 1),
+ new Among("o\u0219i", -1, 1),
+ new Among("it\u0103\u021Bi", -1, 1),
new Among("abil", -1, 1),
new Among("ibil", -1, 1),
new Among("ism", -1, 3),
@@ -153,7 +155,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("iv\u0103", -1, 1)
};
- private static final Among a_4[] = {
+ private static final Among a_5[] = {
new Among("ea", -1, 1),
new Among("ia", -1, 1),
new Among("esc", -1, 1),
@@ -170,44 +172,44 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("ise", 10, 1),
new Among("use", 10, 1),
new Among("\u00E2se", 10, 1),
- new Among("e\u015Fte", -1, 1),
- new Among("\u0103\u015Fte", -1, 1),
+ new Among("e\u0219te", -1, 1),
+ new Among("\u0103\u0219te", -1, 1),
new Among("eze", -1, 1),
new Among("ai", -1, 1),
new Among("eai", 19, 1),
new Among("iai", 19, 1),
new Among("sei", -1, 2),
- new Among("e\u015Fti", -1, 1),
- new Among("\u0103\u015Fti", -1, 1),
+ new Among("e\u0219ti", -1, 1),
+ new Among("\u0103\u0219ti", -1, 1),
new Among("ui", -1, 1),
new Among("ezi", -1, 1),
new Among("\u00E2i", -1, 1),
- new Among("a\u015Fi", -1, 1),
- new Among("se\u015Fi", -1, 2),
- new Among("ase\u015Fi", 29, 1),
- new Among("sese\u015Fi", 29, 2),
- new Among("ise\u015Fi", 29, 1),
- new Among("use\u015Fi", 29, 1),
- new Among("\u00E2se\u015Fi", 29, 1),
- new Among("i\u015Fi", -1, 1),
- new Among("u\u015Fi", -1, 1),
- new Among("\u00E2\u015Fi", -1, 1),
- new Among("a\u0163i", -1, 2),
- new Among("ea\u0163i", 38, 1),
- new Among("ia\u0163i", 38, 1),
- new Among("e\u0163i", -1, 2),
- new Among("i\u0163i", -1, 2),
- new Among("\u00E2\u0163i", -1, 2),
- new Among("ar\u0103\u0163i", -1, 1),
- new Among("ser\u0103\u0163i", -1, 2),
- new Among("aser\u0103\u0163i", 45, 1),
- new Among("seser\u0103\u0163i", 45, 2),
- new Among("iser\u0103\u0163i", 45, 1),
- new Among("user\u0103\u0163i", 45, 1),
- new Among("\u00E2ser\u0103\u0163i", 45, 1),
- new Among("ir\u0103\u0163i", -1, 1),
- new Among("ur\u0103\u0163i", -1, 1),
- new Among("\u00E2r\u0103\u0163i", -1, 1),
+ new Among("a\u0219i", -1, 1),
+ new Among("se\u0219i", -1, 2),
+ new Among("ase\u0219i", 29, 1),
+ new Among("sese\u0219i", 29, 2),
+ new Among("ise\u0219i", 29, 1),
+ new Among("use\u0219i", 29, 1),
+ new Among("\u00E2se\u0219i", 29, 1),
+ new Among("i\u0219i", -1, 1),
+ new Among("u\u0219i", -1, 1),
+ new Among("\u00E2\u0219i", -1, 1),
+ new Among("a\u021Bi", -1, 2),
+ new Among("ea\u021Bi", 38, 1),
+ new Among("ia\u021Bi", 38, 1),
+ new Among("e\u021Bi", -1, 2),
+ new Among("i\u021Bi", -1, 2),
+ new Among("\u00E2\u021Bi", -1, 2),
+ new Among("ar\u0103\u021Bi", -1, 1),
+ new Among("ser\u0103\u021Bi", -1, 2),
+ new Among("aser\u0103\u021Bi", 45, 1),
+ new Among("seser\u0103\u021Bi", 45, 2),
+ new Among("iser\u0103\u021Bi", 45, 1),
+ new Among("user\u0103\u021Bi", 45, 1),
+ new Among("\u00E2ser\u0103\u021Bi", 45, 1),
+ new Among("ir\u0103\u021Bi", -1, 1),
+ new Among("ur\u0103\u021Bi", -1, 1),
+ new Among("\u00E2r\u0103\u021Bi", -1, 1),
new Among("am", -1, 1),
new Among("eam", 54, 1),
new Among("iam", 54, 1),
@@ -250,7 +252,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("eaz\u0103", -1, 1)
};
- private static final Among a_5[] = {
+ private static final Among a_6[] = {
new Among("a", -1, 1),
new Among("e", -1, 1),
new Among("ie", 1, 1),
@@ -267,6 +269,53 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
private int I_p1;
private int I_pV;
+ private boolean r_norm() {
+ int among_var;
+ int v_1 = cursor;
+ lab0:
+ {
+ while (true) {
+ int v_2 = cursor;
+ lab1:
+ {
+ golab2:
+ while (true) {
+ int v_3 = cursor;
+ lab3:
+ {
+ bra = cursor;
+ among_var = find_among(a_0);
+ if (among_var == 0) {
+ break lab3;
+ }
+ ket = cursor;
+ switch (among_var) {
+ case 1:
+ slice_from("\u0219");
+ break;
+ case 2:
+ slice_from("\u021B");
+ break;
+ }
+ cursor = v_3;
+ break golab2;
+ }
+ cursor = v_3;
+ if (cursor >= limit) {
+ break lab1;
+ }
+ cursor++;
+ }
+ continue;
+ }
+ cursor = v_2;
+ break;
+ }
+ }
+ cursor = v_1;
+ return true;
+ }
+
private boolean r_prelude() {
while (true) {
int v_1 = cursor;
@@ -497,10 +546,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
bra = cursor;
- among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
+ among_var = find_among(a_1);
ket = cursor;
switch (among_var) {
case 1:
@@ -525,30 +571,21 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_step_0() {
int among_var;
ket = cursor;
- among_var = find_among_b(a_1);
+ among_var = find_among_b(a_2);
if (among_var == 0) {
return false;
}
@@ -587,7 +624,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
slice_from("at");
break;
case 7:
- slice_from("a\u0163i");
+ slice_from("a\u021Bi");
break;
}
return true;
@@ -597,7 +634,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
int among_var;
int v_1 = limit - cursor;
ket = cursor;
- among_var = find_among_b(a_2);
+ among_var = find_among_b(a_3);
if (among_var == 0) {
return false;
}
@@ -646,7 +683,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
break;
}
ket = cursor;
- among_var = find_among_b(a_3);
+ among_var = find_among_b(a_4);
if (among_var == 0) {
return false;
}
@@ -659,7 +696,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
slice_del();
break;
case 2:
- if (!(eq_s_b("\u0163"))) {
+ if (!(eq_s_b("\u021B"))) {
return false;
}
bra = cursor;
@@ -681,7 +718,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_2 = limit_backward;
limit_backward = I_pV;
ket = cursor;
- among_var = find_among_b(a_4);
+ among_var = find_among_b(a_5);
if (among_var == 0) {
limit_backward = v_2;
return false;
@@ -717,7 +754,7 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_vowel_suffix() {
ket = cursor;
- if (find_among_b(a_5) == 0) {
+ if (find_among_b(a_6) == 0) {
return false;
}
bra = cursor;
@@ -730,24 +767,25 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
@Override
public boolean stem() {
- int v_1 = cursor;
+ r_norm();
+ int v_2 = cursor;
r_prelude();
- cursor = v_1;
+ cursor = v_2;
r_mark_regions();
limit_backward = cursor;
cursor = limit;
- int v_3 = limit - cursor;
- r_step_0();
- cursor = limit - v_3;
int v_4 = limit - cursor;
- r_standard_suffix();
+ r_step_0();
cursor = limit - v_4;
int v_5 = limit - cursor;
+ r_standard_suffix();
+ cursor = limit - v_5;
+ int v_6 = limit - cursor;
lab0:
{
lab1:
{
- int v_6 = limit - cursor;
+ int v_7 = limit - cursor;
lab2:
{
if (!(B_standard_suffix_removed)) {
@@ -755,20 +793,20 @@ public class RomanianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
break lab1;
}
- cursor = limit - v_6;
+ cursor = limit - v_7;
if (!r_verb_suffix()) {
break lab0;
}
}
}
- cursor = limit - v_5;
- int v_7 = limit - cursor;
+ cursor = limit - v_6;
+ int v_8 = limit - cursor;
r_vowel_suffix();
- cursor = limit - v_7;
+ cursor = limit - v_8;
cursor = limit_backward;
- int v_8 = cursor;
+ int v_9 = cursor;
r_postlude();
- cursor = v_8;
+ cursor = v_9;
return true;
}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java
index f650d557bd6..f025797d8c1 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class RussianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -246,10 +246,7 @@ public class RussianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_perfective_gerund() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SerbianStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SerbianStemmer.java
index 0b3f2b56f66..23804c0cd39 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SerbianStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SerbianStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class SerbianStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -2553,7 +2553,7 @@ public class SerbianStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor++;
}
I_p1 = cursor;
- if (!(I_p1 < 2)) {
+ if (I_p1 >= 2) {
break lab3;
}
golab6:
@@ -2595,7 +2595,7 @@ public class SerbianStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_8 = cursor;
lab12:
{
- if (!(cursor >= 2)) {
+ if (cursor < 2) {
break lab12;
}
break lab11;
@@ -2616,7 +2616,7 @@ public class SerbianStemmer extends org.tartarus.snowball.SnowballStemmer {
cursor++;
}
}
- if (!((I_p1 - cursor) > 1)) {
+ if ((I_p1 - cursor) <= 1) {
break lab8;
}
I_p1 = cursor;
@@ -2626,10 +2626,7 @@ public class SerbianStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_Step_1() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
index 3ed28f28e2a..1a8c6a6a99e 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class SpanishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -427,9 +427,6 @@ public class SpanishStemmer extends org.tartarus.snowball.SnowballStemmer {
{
bra = cursor;
among_var = find_among(a_0);
- if (among_var == 0) {
- break lab0;
- }
ket = cursor;
switch (among_var) {
case 1:
@@ -463,24 +460,15 @@ public class SpanishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_RV() {
- if (!(I_pV <= cursor)) {
- return false;
- }
- return true;
+ return I_pV <= cursor;
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
}
private boolean r_R2() {
- if (!(I_p2 <= cursor)) {
- return false;
- }
- return true;
+ return I_p2 <= cursor;
}
private boolean r_attached_pronoun() {
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
index 53d244dc508..e7deb746cab 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class SwedishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -71,13 +71,15 @@ public class SwedishStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("lig", 0, 1),
new Among("els", -1, 1),
new Among("fullt", -1, 3),
- new Among("l\u00F6st", -1, 2)
+ new Among("\u00F6st", -1, 2)
};
private static final char g_v[] = {17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 32};
private static final char g_s_ending[] = {119, 127, 149};
+ private static final char g_ost_ending[] = {173, 58};
+
private int I_x;
private int I_p1;
@@ -86,7 +88,7 @@ public class SwedishStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
@@ -127,7 +129,7 @@ public class SwedishStemmer extends org.tartarus.snowball.SnowballStemmer {
I_p1 = cursor;
lab4:
{
- if (!(I_p1 < I_x)) {
+ if (I_p1 >= I_x) {
break lab4;
}
I_p1 = I_x;
@@ -202,18 +204,21 @@ public class SwedishStemmer extends org.tartarus.snowball.SnowballStemmer {
return false;
}
bra = cursor;
+ limit_backward = v_2;
switch (among_var) {
case 1:
slice_del();
break;
case 2:
- slice_from("l\u00F6s");
+ if (!(in_grouping_b(g_ost_ending, 105, 118))) {
+ return false;
+ }
+ slice_from("\u00F6s");
break;
case 3:
slice_from("full");
break;
}
- limit_backward = v_2;
return true;
}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TamilStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TamilStemmer.java
index 14c898f486a..ee266c47a53 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TamilStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TamilStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -17,6 +17,13 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
java.lang.invoke.MethodHandles.lookup();
private static final Among a_0[] = {
+ new Among("\u0BB5\u0BC1", -1, 3),
+ new Among("\u0BB5\u0BC2", -1, 4),
+ new Among("\u0BB5\u0BCA", -1, 2),
+ new Among("\u0BB5\u0BCB", -1, 1)
+ };
+
+ private static final Among a_1[] = {
new Among("\u0B95", -1, -1),
new Among("\u0B99", -1, -1),
new Among("\u0B9A", -1, -1),
@@ -29,26 +36,46 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BB5", -1, -1)
};
- private static final Among a_1[] = {
- new Among("\u0BA8\u0BCD\u0BA4", -1, -1),
- new Among("\u0BA8\u0BCD\u0BA4\u0BCD", -1, -1),
- new Among("\u0BA8\u0BCD", -1, -1)
- };
-
private static final Among a_2[] = {
new Among("\u0BBF", -1, -1), new Among("\u0BC0", -1, -1), new Among("\u0BC8", -1, -1)
};
private static final Among a_3[] = {
- new Among("\u0B95", -1, -1),
- new Among("\u0B9A", -1, -1),
- new Among("\u0B9F", -1, -1),
- new Among("\u0BA4", -1, -1),
- new Among("\u0BAA", -1, -1),
- new Among("\u0BB1", -1, -1)
+ new Among("\u0BBE", -1, -1),
+ new Among("\u0BBF", -1, -1),
+ new Among("\u0BC0", -1, -1),
+ new Among("\u0BC1", -1, -1),
+ new Among("\u0BC2", -1, -1),
+ new Among("\u0BC6", -1, -1),
+ new Among("\u0BC7", -1, -1),
+ new Among("\u0BC8", -1, -1)
};
private static final Among a_4[] = {
+ new Among("", -1, 2), new Among("\u0BC8", 0, 1), new Among("\u0BCD", 0, 1)
+ };
+
+ private static final Among a_5[] = {
+ new Among("\u0BA8\u0BCD\u0BA4", -1, 1),
+ new Among("\u0BAF", -1, 1),
+ new Among("\u0BB5", -1, 1),
+ new Among("\u0BA9\u0BC1", -1, 8),
+ new Among("\u0BC1\u0B95\u0BCD", -1, 7),
+ new Among("\u0BC1\u0B95\u0BCD\u0B95\u0BCD", -1, 7),
+ new Among("\u0B9F\u0BCD\u0B95\u0BCD", -1, 3),
+ new Among("\u0BB1\u0BCD\u0B95\u0BCD", -1, 4),
+ new Among("\u0B99\u0BCD", -1, 9),
+ new Among("\u0B9F\u0BCD\u0B9F\u0BCD", -1, 5),
+ new Among("\u0BA4\u0BCD\u0BA4\u0BCD", -1, 6),
+ new Among("\u0BA8\u0BCD\u0BA4\u0BCD", -1, 1),
+ new Among("\u0BA8\u0BCD", -1, 1),
+ new Among("\u0B9F\u0BCD\u0BAA\u0BCD", -1, 3),
+ new Among("\u0BAF\u0BCD", -1, 2),
+ new Among("\u0BA9\u0BCD\u0BB1\u0BCD", -1, 4),
+ new Among("\u0BB5\u0BCD", -1, 1)
+ };
+
+ private static final Among a_6[] = {
new Among("\u0B95", -1, -1),
new Among("\u0B9A", -1, -1),
new Among("\u0B9F", -1, -1),
@@ -57,7 +84,7 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BB1", -1, -1)
};
- private static final Among a_5[] = {
+ private static final Among a_7[] = {
new Among("\u0B95", -1, -1),
new Among("\u0B9A", -1, -1),
new Among("\u0B9F", -1, -1),
@@ -66,7 +93,12 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BB1", -1, -1)
};
- private static final Among a_6[] = {
+ private static final Among a_8[] = {
+ new Among("\u0B9E", -1, -1),
+ new Among("\u0BA3", -1, -1),
+ new Among("\u0BA8", -1, -1),
+ new Among("\u0BA9", -1, -1),
+ new Among("\u0BAE", -1, -1),
new Among("\u0BAF", -1, -1),
new Among("\u0BB0", -1, -1),
new Among("\u0BB2", -1, -1),
@@ -75,19 +107,6 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BB5", -1, -1)
};
- private static final Among a_7[] = {
- new Among("\u0B99", -1, -1),
- new Among("\u0B9E", -1, -1),
- new Among("\u0BA3", -1, -1),
- new Among("\u0BA8", -1, -1),
- new Among("\u0BA9", -1, -1),
- new Among("\u0BAE", -1, -1)
- };
-
- private static final Among a_8[] = {
- new Among("\u0BAF", -1, -1), new Among("\u0BB5", -1, -1), new Among("\u0BB5\u0BCD", -1, -1)
- };
-
private static final Among a_9[] = {
new Among("\u0BBE", -1, -1),
new Among("\u0BBF", -1, -1),
@@ -96,25 +115,15 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BC2", -1, -1),
new Among("\u0BC6", -1, -1),
new Among("\u0BC7", -1, -1),
- new Among("\u0BC8", -1, -1)
+ new Among("\u0BC8", -1, -1),
+ new Among("\u0BCD", -1, -1)
};
private static final Among a_10[] = {
- new Among("\u0BBE", -1, -1),
- new Among("\u0BBF", -1, -1),
- new Among("\u0BC0", -1, -1),
- new Among("\u0BC1", -1, -1),
- new Among("\u0BC2", -1, -1),
- new Among("\u0BC6", -1, -1),
- new Among("\u0BC7", -1, -1),
- new Among("\u0BC8", -1, -1)
- };
-
- private static final Among a_11[] = {
new Among("\u0B85", -1, -1), new Among("\u0B87", -1, -1), new Among("\u0B89", -1, -1)
};
- private static final Among a_12[] = {
+ private static final Among a_11[] = {
new Among("\u0B95", -1, -1),
new Among("\u0B99", -1, -1),
new Among("\u0B9A", -1, -1),
@@ -127,7 +136,7 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BB5", -1, -1)
};
- private static final Among a_13[] = {
+ private static final Among a_12[] = {
new Among("\u0B95", -1, -1),
new Among("\u0B9A", -1, -1),
new Among("\u0B9F", -1, -1),
@@ -136,6 +145,13 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BB1", -1, -1)
};
+ private static final Among a_13[] = {
+ new Among("\u0B95\u0BB3\u0BCD", -1, 4),
+ new Among("\u0BC1\u0B99\u0BCD\u0B95\u0BB3\u0BCD", 0, 1),
+ new Among("\u0B9F\u0BCD\u0B95\u0BB3\u0BCD", 0, 3),
+ new Among("\u0BB1\u0BCD\u0B95\u0BB3\u0BCD", 0, 2)
+ };
+
private static final Among a_14[] = {
new Among("\u0BBE", -1, -1), new Among("\u0BC7", -1, -1), new Among("\u0BCB", -1, -1)
};
@@ -156,40 +172,35 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
};
private static final Among a_17[] = {
- new Among("\u0BAA\u0B9F\u0BCD\u0B9F", -1, -1),
- new Among("\u0BAA\u0B9F\u0BCD\u0B9F\u0BA3", -1, -1),
- new Among("\u0BA4\u0BBE\u0BA9", -1, -1),
- new Among("\u0BAA\u0B9F\u0BBF\u0BA4\u0BBE\u0BA9", 2, -1),
- new Among("\u0B95\u0BC1\u0BB0\u0BBF\u0BAF", -1, -1),
- new Among("\u0BAA\u0B9F\u0BBF", -1, -1),
- new Among("\u0BAA\u0BB1\u0BCD\u0BB1\u0BBF", -1, -1),
- new Among("\u0BAA\u0B9F\u0BC1", -1, -1),
- new Among("\u0BB5\u0BBF\u0B9F\u0BC1", -1, -1),
- new Among("\u0BAA\u0B9F\u0BCD\u0B9F\u0BC1", -1, -1),
- new Among("\u0BB5\u0BBF\u0B9F\u0BCD\u0B9F\u0BC1", -1, -1),
- new Among("\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1", -1, -1),
- new Among("\u0BC6\u0BB2\u0BCD\u0BB2\u0BBE\u0BAE\u0BCD", -1, -1)
+ new Among("\u0BAA\u0B9F\u0BCD\u0B9F", -1, 3),
+ new Among("\u0BAA\u0B9F\u0BCD\u0B9F\u0BA3", -1, 3),
+ new Among("\u0BA4\u0BBE\u0BA9", -1, 3),
+ new Among("\u0BAA\u0B9F\u0BBF\u0BA4\u0BBE\u0BA9", 2, 3),
+ new Among("\u0BC6\u0BA9", -1, 1),
+ new Among("\u0BBE\u0B95\u0BBF\u0BAF", -1, 1),
+ new Among("\u0B95\u0BC1\u0BB0\u0BBF\u0BAF", -1, 3),
+ new Among("\u0BC1\u0B9F\u0BC8\u0BAF", -1, 1),
+ new Among("\u0BB2\u0BCD\u0BB2", -1, 2),
+ new Among("\u0BC1\u0BB3\u0BCD\u0BB3", -1, 1),
+ new Among("\u0BBE\u0B95\u0BBF", -1, 1),
+ new Among("\u0BAA\u0B9F\u0BBF", -1, 3),
+ new Among("\u0BBF\u0BA9\u0BCD\u0BB1\u0BBF", -1, 1),
+ new Among("\u0BAA\u0BB1\u0BCD\u0BB1\u0BBF", -1, 3),
+ new Among("\u0BAA\u0B9F\u0BC1", -1, 3),
+ new Among("\u0BB5\u0BBF\u0B9F\u0BC1", -1, 3),
+ new Among("\u0BAA\u0B9F\u0BCD\u0B9F\u0BC1", -1, 3),
+ new Among("\u0BB5\u0BBF\u0B9F\u0BCD\u0B9F\u0BC1", -1, 3),
+ new Among("\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1", -1, 3),
+ new Among("\u0BC6\u0BA9\u0BCD\u0BB1\u0BC1", -1, 1),
+ new Among("\u0BC1\u0B9F\u0BC8", -1, 1),
+ new Among("\u0BBF\u0BB2\u0BCD\u0BB2\u0BC8", -1, 1),
+ new Among("\u0BC1\u0B9F\u0BA9\u0BCD", -1, 1),
+ new Among("\u0BBF\u0B9F\u0BAE\u0BCD", -1, 1),
+ new Among("\u0BC6\u0BB2\u0BCD\u0BB2\u0BBE\u0BAE\u0BCD", -1, 3),
+ new Among("\u0BC6\u0BA9\u0BC1\u0BAE\u0BCD", -1, 1)
};
private static final Among a_18[] = {
- new Among("\u0B95", -1, -1),
- new Among("\u0B9A", -1, -1),
- new Among("\u0B9F", -1, -1),
- new Among("\u0BA4", -1, -1),
- new Among("\u0BAA", -1, -1),
- new Among("\u0BB1", -1, -1)
- };
-
- private static final Among a_19[] = {
- new Among("\u0B95", -1, -1),
- new Among("\u0B9A", -1, -1),
- new Among("\u0B9F", -1, -1),
- new Among("\u0BA4", -1, -1),
- new Among("\u0BAA", -1, -1),
- new Among("\u0BB1", -1, -1)
- };
-
- private static final Among a_20[] = {
new Among("\u0BBE", -1, -1),
new Among("\u0BBF", -1, -1),
new Among("\u0BC0", -1, -1),
@@ -200,7 +211,7 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BC8", -1, -1)
};
- private static final Among a_21[] = {
+ private static final Among a_19[] = {
new Among("\u0BBE", -1, -1),
new Among("\u0BBF", -1, -1),
new Among("\u0BC0", -1, -1),
@@ -211,9 +222,47 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u0BC8", -1, -1)
};
+ private static final Among a_20[] = {
+ new Among("\u0BB5\u0BBF\u0B9F", -1, 2),
+ new Among("\u0BC0", -1, 7),
+ new Among("\u0BCA\u0B9F\u0BC1", -1, 2),
+ new Among("\u0BCB\u0B9F\u0BC1", -1, 2),
+ new Among("\u0BA4\u0BC1", -1, 6),
+ new Among("\u0BBF\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4\u0BC1", 4, 2),
+ new Among("\u0BBF\u0BA9\u0BCD\u0BB1\u0BC1", -1, 2),
+ new Among("\u0BC1\u0B9F\u0BC8", -1, 2),
+ new Among("\u0BA9\u0BC8", -1, 1),
+ new Among("\u0B95\u0BA3\u0BCD", -1, 1),
+ new Among("\u0BBF\u0BA9\u0BCD", -1, 3),
+ new Among("\u0BAE\u0BC1\u0BA9\u0BCD", -1, 1),
+ new Among("\u0BBF\u0B9F\u0BAE\u0BCD", -1, 4),
+ new Among("\u0BBF\u0BB1\u0BCD", -1, 2),
+ new Among("\u0BAE\u0BC7\u0BB1\u0BCD", -1, 1),
+ new Among("\u0BB2\u0BCD", -1, 5),
+ new Among("\u0BBE\u0BAE\u0BB2\u0BCD", 15, 2),
+ new Among("\u0BBE\u0BB2\u0BCD", 15, 2),
+ new Among("\u0BBF\u0BB2\u0BCD", 15, 2),
+ new Among("\u0BAE\u0BC7\u0BB2\u0BCD", 15, 1),
+ new Among("\u0BC1\u0BB3\u0BCD", -1, 2),
+ new Among("\u0B95\u0BC0\u0BB4\u0BCD", -1, 1)
+ };
+
+ private static final Among a_21[] = {
+ new Among("\u0B95", -1, -1),
+ new Among("\u0B9A", -1, -1),
+ new Among("\u0B9F", -1, -1),
+ new Among("\u0BA4", -1, -1),
+ new Among("\u0BAA", -1, -1),
+ new Among("\u0BB1", -1, -1)
+ };
+
private static final Among a_22[] = {
- new Among("\u0BAA\u0B9F\u0BC1", -1, -1),
- new Among("\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BCD", -1, -1)
+ new Among("\u0B95", -1, -1),
+ new Among("\u0B9A", -1, -1),
+ new Among("\u0B9F", -1, -1),
+ new Among("\u0BA4", -1, -1),
+ new Among("\u0BAA", -1, -1),
+ new Among("\u0BB1", -1, -1)
};
private static final Among a_23[] = {
@@ -243,6 +292,55 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
};
private static final Among a_25[] = {
+ new Among("\u0B95", -1, 1),
+ new Among("\u0BA4", -1, 1),
+ new Among("\u0BA9", -1, 1),
+ new Among("\u0BAA", -1, 1),
+ new Among("\u0BAF", -1, 1),
+ new Among("\u0BBE", -1, 5),
+ new Among("\u0B95\u0BC1", -1, 6),
+ new Among("\u0BAA\u0B9F\u0BC1", -1, 1),
+ new Among("\u0BA4\u0BC1", -1, 3),
+ new Among("\u0BBF\u0BB1\u0BCD\u0BB1\u0BC1", -1, 1),
+ new Among("\u0BA9\u0BC8", -1, 1),
+ new Among("\u0BB5\u0BC8", -1, 1),
+ new Among("\u0BA9\u0BA9\u0BCD", -1, 1),
+ new Among("\u0BAA\u0BA9\u0BCD", -1, 1),
+ new Among("\u0BB5\u0BA9\u0BCD", -1, 2),
+ new Among("\u0BBE\u0BA9\u0BCD", -1, 4),
+ new Among("\u0BA9\u0BBE\u0BA9\u0BCD", 15, 1),
+ new Among("\u0BAE\u0BBF\u0BA9\u0BCD", -1, 1),
+ new Among("\u0BA9\u0BC6\u0BA9\u0BCD", -1, 1),
+ new Among("\u0BC7\u0BA9\u0BCD", -1, 5),
+ new Among("\u0BA9\u0BAE\u0BCD", -1, 1),
+ new Among("\u0BAA\u0BAE\u0BCD", -1, 1),
+ new Among("\u0BBE\u0BAE\u0BCD", -1, 5),
+ new Among("\u0B95\u0BC1\u0BAE\u0BCD", -1, 1),
+ new Among("\u0B9F\u0BC1\u0BAE\u0BCD", -1, 5),
+ new Among("\u0BA4\u0BC1\u0BAE\u0BCD", -1, 1),
+ new Among("\u0BB1\u0BC1\u0BAE\u0BCD", -1, 1),
+ new Among("\u0BC6\u0BAE\u0BCD", -1, 5),
+ new Among("\u0BC7\u0BAE\u0BCD", -1, 5),
+ new Among("\u0BCB\u0BAE\u0BCD", -1, 5),
+ new Among("\u0BBE\u0BAF\u0BCD", -1, 5),
+ new Among("\u0BA9\u0BB0\u0BCD", -1, 1),
+ new Among("\u0BAA\u0BB0\u0BCD", -1, 1),
+ new Among("\u0BC0\u0BAF\u0BB0\u0BCD", -1, 5),
+ new Among("\u0BB5\u0BB0\u0BCD", -1, 1),
+ new Among("\u0BBE\u0BB0\u0BCD", -1, 5),
+ new Among("\u0BA9\u0BBE\u0BB0\u0BCD", 35, 1),
+ new Among("\u0BAE\u0BBE\u0BB0\u0BCD", 35, 1),
+ new Among("\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BCD", -1, 1),
+ new Among("\u0BA9\u0BBF\u0BB0\u0BCD", -1, 5),
+ new Among("\u0BC0\u0BB0\u0BCD", -1, 5),
+ new Among("\u0BA9\u0BB3\u0BCD", -1, 1),
+ new Among("\u0BAA\u0BB3\u0BCD", -1, 1),
+ new Among("\u0BB5\u0BB3\u0BCD", -1, 1),
+ new Among("\u0BBE\u0BB3\u0BCD", -1, 5),
+ new Among("\u0BA9\u0BBE\u0BB3\u0BCD", 44, 1)
+ };
+
+ private static final Among a_26[] = {
new Among("\u0B95\u0BBF\u0BB1", -1, -1),
new Among("\u0B95\u0BBF\u0BA9\u0BCD\u0BB1", -1, -1),
new Among("\u0BBE\u0BA8\u0BBF\u0BA9\u0BCD\u0BB1", -1, -1),
@@ -255,95 +353,30 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean B_found_a_match;
private boolean r_has_min_length() {
- if (!(limit > 4)) {
- return false;
- }
- return true;
+ return limit > 4;
}
private boolean r_fix_va_start() {
- lab0:
- {
- int v_1 = cursor;
- lab1:
- {
- int v_2 = cursor;
- int v_3 = cursor;
- lab2:
- {
- if (!(eq_s("\u0BB5\u0BCB"))) {
- cursor = v_3;
- break lab2;
- }
- }
- cursor = v_2;
- bra = cursor;
- if (!(eq_s("\u0BB5\u0BCB"))) {
- break lab1;
- }
- ket = cursor;
+ int among_var;
+ bra = cursor;
+ among_var = find_among(a_0);
+ if (among_var == 0) {
+ return false;
+ }
+ ket = cursor;
+ switch (among_var) {
+ case 1:
slice_from("\u0B93");
- break lab0;
- }
- cursor = v_1;
- lab3:
- {
- int v_4 = cursor;
- int v_5 = cursor;
- lab4:
- {
- if (!(eq_s("\u0BB5\u0BCA"))) {
- cursor = v_5;
- break lab4;
- }
- }
- cursor = v_4;
- bra = cursor;
- if (!(eq_s("\u0BB5\u0BCA"))) {
- break lab3;
- }
- ket = cursor;
+ break;
+ case 2:
slice_from("\u0B92");
- break lab0;
- }
- cursor = v_1;
- lab5:
- {
- int v_6 = cursor;
- int v_7 = cursor;
- lab6:
- {
- if (!(eq_s("\u0BB5\u0BC1"))) {
- cursor = v_7;
- break lab6;
- }
- }
- cursor = v_6;
- bra = cursor;
- if (!(eq_s("\u0BB5\u0BC1"))) {
- break lab5;
- }
- ket = cursor;
+ break;
+ case 3:
slice_from("\u0B89");
- break lab0;
- }
- cursor = v_1;
- int v_8 = cursor;
- int v_9 = cursor;
- lab7:
- {
- if (!(eq_s("\u0BB5\u0BC2"))) {
- cursor = v_9;
- break lab7;
- }
- }
- cursor = v_8;
- bra = cursor;
- if (!(eq_s("\u0BB5\u0BC2"))) {
- return false;
- }
- ket = cursor;
- slice_from("\u0B8A");
+ break;
+ case 4:
+ slice_from("\u0B8A");
+ break;
}
return true;
}
@@ -374,7 +407,7 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
if (!(eq_s("\u0B8E"))) {
return false;
}
- if (find_among(a_0) == 0) {
+ if (find_among(a_1) == 0) {
return false;
}
if (!(eq_s("\u0BCD"))) {
@@ -389,7 +422,8 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_fix_ending() {
- if (!(limit > 3)) {
+ int among_var;
+ if (limit <= 3) {
return false;
}
limit_backward = cursor;
@@ -400,316 +434,142 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
lab1:
{
ket = cursor;
- if (find_among_b(a_1) == 0) {
+ among_var = find_among_b(a_5);
+ if (among_var == 0) {
break lab1;
}
bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab2:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BAF\u0BCD"))) {
- break lab2;
- }
- int v_2 = limit - cursor;
- if (find_among_b(a_2) == 0) {
- break lab2;
- }
- cursor = limit - v_2;
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab3:
- {
- ket = cursor;
- lab4:
- {
- int v_3 = limit - cursor;
- lab5:
- {
- if (!(eq_s_b("\u0B9F\u0BCD\u0BAA\u0BCD"))) {
- break lab5;
+ switch (among_var) {
+ case 1:
+ slice_del();
+ break;
+ case 2:
+ int v_2 = limit - cursor;
+ if (find_among_b(a_2) == 0) {
+ break lab1;
+ }
+ cursor = limit - v_2;
+ slice_del();
+ break;
+ case 3:
+ slice_from("\u0BB3\u0BCD");
+ break;
+ case 4:
+ slice_from("\u0BB2\u0BCD");
+ break;
+ case 5:
+ slice_from("\u0B9F\u0BC1");
+ break;
+ case 6:
+ if (!(B_found_vetrumai_urupu)) {
+ break lab1;
}
- break lab4;
- }
- cursor = limit - v_3;
- if (!(eq_s_b("\u0B9F\u0BCD\u0B95\u0BCD"))) {
- break lab3;
- }
- }
- bra = cursor;
- slice_from("\u0BB3\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab6:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BA9\u0BCD\u0BB1\u0BCD"))) {
- break lab6;
- }
- bra = cursor;
- slice_from("\u0BB2\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab7:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BB1\u0BCD\u0B95\u0BCD"))) {
- break lab7;
+ {
+ int v_3 = limit - cursor;
+ lab2:
+ {
+ if (!(eq_s_b("\u0BC8"))) {
+ break lab2;
+ }
+ break lab1;
+ }
+ cursor = limit - v_3;
+ }
+ slice_from("\u0BAE\u0BCD");
+ break;
+ case 7:
+ slice_from("\u0BCD");
+ break;
+ case 8:
+ {
+ int v_4 = limit - cursor;
+ lab3:
+ {
+ if (find_among_b(a_3) == 0) {
+ break lab3;
+ }
+ break lab1;
+ }
+ cursor = limit - v_4;
+ }
+ slice_del();
+ break;
+ case 9:
+ among_var = find_among_b(a_4);
+ switch (among_var) {
+ case 1:
+ slice_del();
+ break;
+ case 2:
+ slice_from("\u0BAE\u0BCD");
+ break;
+ }
+ break;
}
- bra = cursor;
- slice_from("\u0BB2\u0BCD");
break lab0;
}
cursor = limit - v_1;
- lab8:
- {
- ket = cursor;
- if (!(eq_s_b("\u0B9F\u0BCD\u0B9F\u0BCD"))) {
- break lab8;
- }
- bra = cursor;
- slice_from("\u0B9F\u0BC1");
- break lab0;
+ ket = cursor;
+ if (!(eq_s_b("\u0BCD"))) {
+ return false;
}
- cursor = limit - v_1;
- lab9:
+ lab4:
{
- if (!(B_found_vetrumai_urupu)) {
- break lab9;
- }
- ket = cursor;
- if (!(eq_s_b("\u0BA4\u0BCD\u0BA4\u0BCD"))) {
- break lab9;
- }
- int v_4 = limit - cursor;
+ int v_5 = limit - cursor;
+ lab5:
{
- int v_5 = limit - cursor;
- lab10:
+ if (find_among_b(a_6) == 0) {
+ break lab5;
+ }
+ int v_6 = limit - cursor;
+ lab6:
{
- if (!(eq_s_b("\u0BC8"))) {
- break lab10;
+ if (!(eq_s_b("\u0BCD"))) {
+ cursor = limit - v_6;
+ break lab6;
+ }
+ if (find_among_b(a_7) == 0) {
+ cursor = limit - v_6;
+ break lab6;
}
- break lab9;
}
- cursor = limit - v_5;
+ bra = cursor;
+ slice_del();
+ break lab4;
}
- cursor = limit - v_4;
- bra = cursor;
- slice_from("\u0BAE\u0BCD");
- bra = cursor;
- break lab0;
- }
- cursor = limit - v_1;
- lab11:
- {
- ket = cursor;
- lab12:
+ cursor = limit - v_5;
+ lab7:
{
- int v_6 = limit - cursor;
- lab13:
- {
- if (!(eq_s_b("\u0BC1\u0B95\u0BCD"))) {
- break lab13;
- }
- break lab12;
+ if (find_among_b(a_8) == 0) {
+ break lab7;
}
- cursor = limit - v_6;
- if (!(eq_s_b("\u0BC1\u0B95\u0BCD\u0B95\u0BCD"))) {
- break lab11;
+ bra = cursor;
+ if (!(eq_s_b("\u0BCD"))) {
+ break lab7;
}
+ slice_del();
+ break lab4;
+ }
+ cursor = limit - v_5;
+ int v_7 = limit - cursor;
+ if (find_among_b(a_9) == 0) {
+ return false;
}
+ cursor = limit - v_7;
bra = cursor;
- slice_from("\u0BCD");
- break lab0;
+ slice_del();
}
- cursor = limit - v_1;
- lab14:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BCD"))) {
- break lab14;
- }
- if (find_among_b(a_3) == 0) {
- break lab14;
- }
- if (!(eq_s_b("\u0BCD"))) {
- break lab14;
- }
- if (find_among_b(a_4) == 0) {
- break lab14;
- }
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab15:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BC1\u0B95\u0BCD"))) {
- break lab15;
- }
- bra = cursor;
- slice_from("\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab16:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BCD"))) {
- break lab16;
- }
- if (find_among_b(a_5) == 0) {
- break lab16;
- }
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab17:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BCD"))) {
- break lab17;
- }
- lab18:
- {
- int v_7 = limit - cursor;
- lab19:
- {
- if (find_among_b(a_6) == 0) {
- break lab19;
- }
- break lab18;
- }
- cursor = limit - v_7;
- if (find_among_b(a_7) == 0) {
- break lab17;
- }
- }
- if (!(eq_s_b("\u0BCD"))) {
- break lab17;
- }
- bra = cursor;
- slice_from("\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab20:
- {
- ket = cursor;
- if (find_among_b(a_8) == 0) {
- break lab20;
- }
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab21:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BA9\u0BC1"))) {
- break lab21;
- }
- int v_8 = limit - cursor;
- {
- int v_9 = limit - cursor;
- lab22:
- {
- if (find_among_b(a_9) == 0) {
- break lab22;
- }
- break lab21;
- }
- cursor = limit - v_9;
- }
- cursor = limit - v_8;
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab23:
- {
- ket = cursor;
- if (!(eq_s_b("\u0B99\u0BCD"))) {
- break lab23;
- }
- int v_10 = limit - cursor;
- {
- int v_11 = limit - cursor;
- lab24:
- {
- if (!(eq_s_b("\u0BC8"))) {
- break lab24;
- }
- break lab23;
- }
- cursor = limit - v_11;
- }
- cursor = limit - v_10;
- bra = cursor;
- slice_from("\u0BAE\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab25:
- {
- ket = cursor;
- if (!(eq_s_b("\u0B99\u0BCD"))) {
- break lab25;
- }
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- ket = cursor;
- if (!(eq_s_b("\u0BCD"))) {
- return false;
- }
- int v_12 = limit - cursor;
- lab26:
- {
- int v_13 = limit - cursor;
- lab27:
- {
- if (find_among_b(a_10) == 0) {
- break lab27;
- }
- break lab26;
- }
- cursor = limit - v_13;
- if (!(eq_s_b("\u0BCD"))) {
- return false;
- }
- }
- cursor = limit - v_12;
- bra = cursor;
- slice_del();
}
cursor = limit_backward;
return true;
}
private boolean r_remove_pronoun_prefixes() {
- B_found_a_match = false;
bra = cursor;
- if (find_among(a_11) == 0) {
+ if (find_among(a_10) == 0) {
return false;
}
- if (find_among(a_12) == 0) {
+ if (find_among(a_11) == 0) {
return false;
}
if (!(eq_s("\u0BCD"))) {
@@ -717,7 +577,6 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
ket = cursor;
slice_del();
- B_found_a_match = true;
int v_1 = cursor;
r_fix_va_start();
cursor = v_1;
@@ -725,66 +584,42 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_remove_plural_suffix() {
- B_found_a_match = false;
+ int among_var;
limit_backward = cursor;
cursor = limit;
- lab0:
- {
- int v_1 = limit - cursor;
- lab1:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BC1\u0B99\u0BCD\u0B95\u0BB3\u0BCD"))) {
- break lab1;
- }
- int v_2 = limit - cursor;
+ ket = cursor;
+ among_var = find_among_b(a_13);
+ if (among_var == 0) {
+ return false;
+ }
+ bra = cursor;
+ switch (among_var) {
+ case 1:
+ lab0:
{
- int v_3 = limit - cursor;
- lab2:
+ int v_1 = limit - cursor;
+ lab1:
{
- if (find_among_b(a_13) == 0) {
- break lab2;
+ if (find_among_b(a_12) == 0) {
+ break lab1;
}
- break lab1;
+ slice_from("\u0BC1\u0B99\u0BCD");
+ break lab0;
}
- cursor = limit - v_3;
- }
- cursor = limit - v_2;
- bra = cursor;
- slice_from("\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab3:
- {
- ket = cursor;
- if (!(eq_s_b("\u0BB1\u0BCD\u0B95\u0BB3\u0BCD"))) {
- break lab3;
+ cursor = limit - v_1;
+ slice_from("\u0BCD");
}
- bra = cursor;
+ break;
+ case 2:
slice_from("\u0BB2\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- lab4:
- {
- ket = cursor;
- if (!(eq_s_b("\u0B9F\u0BCD\u0B95\u0BB3\u0BCD"))) {
- break lab4;
- }
- bra = cursor;
+ break;
+ case 3:
slice_from("\u0BB3\u0BCD");
- break lab0;
- }
- cursor = limit - v_1;
- ket = cursor;
- if (!(eq_s_b("\u0B95\u0BB3\u0BCD"))) {
- return false;
- }
- bra = cursor;
- slice_del();
+ break;
+ case 4:
+ slice_del();
+ break;
}
- B_found_a_match = true;
cursor = limit_backward;
return true;
}
@@ -793,7 +628,6 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
if (!r_has_min_length()) {
return false;
}
- B_found_a_match = false;
limit_backward = cursor;
cursor = limit;
int v_1 = limit - cursor;
@@ -805,7 +639,6 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
bra = cursor;
slice_from("\u0BCD");
- B_found_a_match = true;
}
cursor = limit - v_1;
cursor = limit_backward;
@@ -817,7 +650,6 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
if (!r_has_min_length()) {
return false;
}
- B_found_a_match = false;
limit_backward = cursor;
cursor = limit;
ket = cursor;
@@ -826,13 +658,11 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
bra = cursor;
slice_del();
- B_found_a_match = true;
cursor = limit_backward;
return true;
}
private boolean r_remove_um() {
- B_found_a_match = false;
if (!r_has_min_length()) {
return false;
}
@@ -844,7 +674,6 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
bra = cursor;
slice_from("\u0BCD");
- B_found_a_match = true;
cursor = limit_backward;
int v_1 = cursor;
r_fix_ending();
@@ -853,159 +682,39 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_remove_common_word_endings() {
- B_found_a_match = false;
+ int among_var;
if (!r_has_min_length()) {
return false;
}
limit_backward = cursor;
cursor = limit;
- lab0:
- {
- int v_1 = limit - cursor;
- lab1:
- {
- int v_2 = limit - cursor;
- ket = cursor;
- lab2:
+ ket = cursor;
+ among_var = find_among_b(a_17);
+ if (among_var == 0) {
+ return false;
+ }
+ bra = cursor;
+ switch (among_var) {
+ case 1:
+ slice_from("\u0BCD");
+ break;
+ case 2:
{
- int v_3 = limit - cursor;
- lab3:
- {
- if (!(eq_s_b("\u0BC1\u0B9F\u0BA9\u0BCD"))) {
- break lab3;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab4:
- {
- if (!(eq_s_b("\u0BBF\u0BB2\u0BCD\u0BB2\u0BC8"))) {
- break lab4;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab5:
- {
- if (!(eq_s_b("\u0BBF\u0B9F\u0BAE\u0BCD"))) {
- break lab5;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab6:
- {
- if (!(eq_s_b("\u0BBF\u0BA9\u0BCD\u0BB1\u0BBF"))) {
- break lab6;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab7:
- {
- if (!(eq_s_b("\u0BBE\u0B95\u0BBF"))) {
- break lab7;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab8:
- {
- if (!(eq_s_b("\u0BBE\u0B95\u0BBF\u0BAF"))) {
- break lab8;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab9:
- {
- if (!(eq_s_b("\u0BC6\u0BA9\u0BCD\u0BB1\u0BC1"))) {
- break lab9;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab10:
- {
- if (!(eq_s_b("\u0BC1\u0BB3\u0BCD\u0BB3"))) {
- break lab10;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab11:
- {
- if (!(eq_s_b("\u0BC1\u0B9F\u0BC8\u0BAF"))) {
- break lab11;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab12:
- {
- if (!(eq_s_b("\u0BC1\u0B9F\u0BC8"))) {
- break lab12;
- }
- break lab2;
- }
- cursor = limit - v_3;
- lab13:
+ int v_1 = limit - cursor;
+ lab0:
{
- if (!(eq_s_b("\u0BC6\u0BA9\u0BC1\u0BAE\u0BCD"))) {
- break lab13;
+ if (find_among_b(a_16) == 0) {
+ break lab0;
}
- break lab2;
- }
- cursor = limit - v_3;
- lab14:
- {
- if (!(eq_s_b("\u0BB2\u0BCD\u0BB2"))) {
- break lab14;
- }
- int v_4 = limit - cursor;
- {
- int v_5 = limit - cursor;
- lab15:
- {
- if (find_among_b(a_16) == 0) {
- break lab15;
- }
- break lab14;
- }
- cursor = limit - v_5;
- }
- cursor = limit - v_4;
- break lab2;
- }
- cursor = limit - v_3;
- lab16:
- {
- if (!(eq_s_b("\u0BC6\u0BA9"))) {
- break lab16;
- }
- break lab2;
- }
- cursor = limit - v_3;
- if (!(eq_s_b("\u0BBE\u0B95\u0BBF"))) {
- break lab1;
+ return false;
}
+ cursor = limit - v_1;
}
- bra = cursor;
slice_from("\u0BCD");
- B_found_a_match = true;
- cursor = limit - v_2;
- break lab0;
- }
- cursor = limit - v_1;
- int v_6 = limit - cursor;
- ket = cursor;
- if (find_among_b(a_17) == 0) {
- return false;
- }
- bra = cursor;
- slice_del();
- B_found_a_match = true;
- cursor = limit - v_6;
+ break;
+ case 3:
+ slice_del();
+ break;
}
cursor = limit_backward;
r_fix_endings();
@@ -1013,7 +722,7 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_remove_vetrumai_urupukal() {
- B_found_a_match = false;
+ int among_var;
B_found_vetrumai_urupu = false;
if (!r_has_min_length()) {
return false;
@@ -1027,323 +736,123 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
{
int v_2 = limit - cursor;
ket = cursor;
- if (!(eq_s_b("\u0BA9\u0BC8"))) {
+ among_var = find_among_b(a_20);
+ if (among_var == 0) {
break lab1;
}
bra = cursor;
- slice_del();
- cursor = limit - v_2;
- break lab0;
- }
- cursor = limit - v_1;
- lab2:
- {
- int v_3 = limit - cursor;
- ket = cursor;
- lab3:
- {
- int v_4 = limit - cursor;
- lab4:
- {
- lab5:
+ switch (among_var) {
+ case 1:
+ slice_del();
+ break;
+ case 2:
+ slice_from("\u0BCD");
+ break;
+ case 3:
{
- int v_5 = limit - cursor;
- lab6:
+ int v_3 = limit - cursor;
+ lab2:
{
- if (!(eq_s_b("\u0BBF\u0BA9\u0BC8"))) {
- break lab6;
+ if (!(eq_s_b("\u0BAE"))) {
+ break lab2;
}
- break lab5;
- }
- cursor = limit - v_5;
- if (!(eq_s_b("\u0BC8"))) {
- break lab4;
+ break lab1;
}
+ cursor = limit - v_3;
+ }
+ slice_from("\u0BCD");
+ break;
+ case 4:
+ if (limit < 7) {
+ break lab1;
}
- int v_6 = limit - cursor;
+ slice_from("\u0BCD");
+ break;
+ case 5:
{
- int v_7 = limit - cursor;
- lab7:
+ int v_4 = limit - cursor;
+ lab3:
{
if (find_among_b(a_18) == 0) {
- break lab7;
+ break lab3;
}
- break lab4;
+ break lab1;
}
- cursor = limit - v_7;
+ cursor = limit - v_4;
}
- cursor = limit - v_6;
- break lab3;
- }
- cursor = limit - v_4;
- if (!(eq_s_b("\u0BC8"))) {
- break lab2;
- }
- int v_8 = limit - cursor;
- if (find_among_b(a_19) == 0) {
- break lab2;
- }
- if (!(eq_s_b("\u0BCD"))) {
- break lab2;
- }
- cursor = limit - v_8;
- }
- bra = cursor;
- slice_from("\u0BCD");
- cursor = limit - v_3;
- break lab0;
- }
- cursor = limit - v_1;
- lab8:
- {
- int v_9 = limit - cursor;
- ket = cursor;
- lab9:
- {
- int v_10 = limit - cursor;
- lab10:
- {
- if (!(eq_s_b("\u0BCA\u0B9F\u0BC1"))) {
- break lab10;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab11:
- {
- if (!(eq_s_b("\u0BCB\u0B9F\u0BC1"))) {
- break lab11;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab12:
- {
- if (!(eq_s_b("\u0BBF\u0BB2\u0BCD"))) {
- break lab12;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab13:
- {
- if (!(eq_s_b("\u0BBF\u0BB1\u0BCD"))) {
- break lab13;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab14:
- {
- if (!(eq_s_b("\u0BBF\u0BA9\u0BCD"))) {
- break lab14;
- }
- int v_11 = limit - cursor;
+ slice_from("\u0BCD");
+ break;
+ case 6:
{
- int v_12 = limit - cursor;
- lab15:
- {
- if (!(eq_s_b("\u0BAE"))) {
- break lab15;
- }
- break lab14;
- }
- cursor = limit - v_12;
- }
- cursor = limit - v_11;
- break lab9;
- }
- cursor = limit - v_10;
- lab16:
- {
- if (!(eq_s_b("\u0BBF\u0BA9\u0BCD\u0BB1\u0BC1"))) {
- break lab16;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab17:
- {
- if (!(eq_s_b("\u0BBF\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4\u0BC1"))) {
- break lab17;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab18:
- {
- if (!(eq_s_b("\u0BB5\u0BBF\u0B9F"))) {
- break lab18;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab19:
- {
- if (!(limit >= 7)) {
- break lab19;
- }
- if (!(eq_s_b("\u0BBF\u0B9F\u0BAE\u0BCD"))) {
- break lab19;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab20:
- {
- if (!(eq_s_b("\u0BBE\u0BB2\u0BCD"))) {
- break lab20;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab21:
- {
- if (!(eq_s_b("\u0BC1\u0B9F\u0BC8"))) {
- break lab21;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab22:
- {
- if (!(eq_s_b("\u0BBE\u0BAE\u0BB2\u0BCD"))) {
- break lab22;
- }
- break lab9;
- }
- cursor = limit - v_10;
- lab23:
- {
- if (!(eq_s_b("\u0BB2\u0BCD"))) {
- break lab23;
- }
- int v_13 = limit - cursor;
- {
- int v_14 = limit - cursor;
- lab24:
+ int v_5 = limit - cursor;
+ lab4:
{
- if (find_among_b(a_20) == 0) {
- break lab24;
+ if (find_among_b(a_19) == 0) {
+ break lab4;
}
- break lab23;
+ break lab1;
}
- cursor = limit - v_14;
+ cursor = limit - v_5;
}
- cursor = limit - v_13;
- break lab9;
- }
- cursor = limit - v_10;
- if (!(eq_s_b("\u0BC1\u0BB3\u0BCD"))) {
- break lab8;
- }
+ slice_del();
+ break;
+ case 7:
+ slice_from("\u0BBF");
+ break;
}
- bra = cursor;
- slice_from("\u0BCD");
- cursor = limit - v_9;
+ cursor = limit - v_2;
break lab0;
}
cursor = limit - v_1;
- lab25:
+ int v_6 = limit - cursor;
+ ket = cursor;
+ if (!(eq_s_b("\u0BC8"))) {
+ return false;
+ }
+ lab5:
{
- int v_15 = limit - cursor;
- ket = cursor;
- lab26:
+ int v_7 = limit - cursor;
+ lab6:
{
- int v_16 = limit - cursor;
- lab27:
- {
- if (!(eq_s_b("\u0B95\u0BA3\u0BCD"))) {
- break lab27;
- }
- break lab26;
- }
- cursor = limit - v_16;
- lab28:
- {
- if (!(eq_s_b("\u0BAE\u0BC1\u0BA9\u0BCD"))) {
- break lab28;
- }
- break lab26;
- }
- cursor = limit - v_16;
- lab29:
- {
- if (!(eq_s_b("\u0BAE\u0BC7\u0BB2\u0BCD"))) {
- break lab29;
- }
- break lab26;
- }
- cursor = limit - v_16;
- lab30:
- {
- if (!(eq_s_b("\u0BAE\u0BC7\u0BB1\u0BCD"))) {
- break lab30;
- }
- break lab26;
- }
- cursor = limit - v_16;
- lab31:
- {
- if (!(eq_s_b("\u0B95\u0BC0\u0BB4\u0BCD"))) {
- break lab31;
- }
- break lab26;
- }
- cursor = limit - v_16;
- lab32:
- {
- if (!(eq_s_b("\u0BAA\u0BBF\u0BA9\u0BCD"))) {
- break lab32;
- }
- break lab26;
- }
- cursor = limit - v_16;
- if (!(eq_s_b("\u0BA4\u0BC1"))) {
- break lab25;
- }
- int v_17 = limit - cursor;
{
- int v_18 = limit - cursor;
- lab33:
+ int v_8 = limit - cursor;
+ lab7:
{
if (find_among_b(a_21) == 0) {
- break lab33;
+ break lab7;
}
- break lab25;
+ break lab6;
}
- cursor = limit - v_18;
+ cursor = limit - v_8;
}
- cursor = limit - v_17;
+ break lab5;
}
- bra = cursor;
- slice_del();
- cursor = limit - v_15;
- break lab0;
- }
- cursor = limit - v_1;
- int v_19 = limit - cursor;
- ket = cursor;
- if (!(eq_s_b("\u0BC0"))) {
- return false;
+ cursor = limit - v_7;
+ int v_9 = limit - cursor;
+ if (find_among_b(a_22) == 0) {
+ return false;
+ }
+ if (!(eq_s_b("\u0BCD"))) {
+ return false;
+ }
+ cursor = limit - v_9;
}
bra = cursor;
- slice_from("\u0BBF");
- cursor = limit - v_19;
+ slice_from("\u0BCD");
+ cursor = limit - v_6;
}
- B_found_a_match = true;
B_found_vetrumai_urupu = true;
- int v_20 = limit - cursor;
- lab34:
+ int v_10 = limit - cursor;
+ lab8:
{
ket = cursor;
if (!(eq_s_b("\u0BBF\u0BA9\u0BCD"))) {
- break lab34;
+ break lab8;
}
bra = cursor;
slice_from("\u0BCD");
}
- cursor = limit - v_20;
+ cursor = limit - v_10;
cursor = limit_backward;
r_fix_endings();
return true;
@@ -1370,6 +879,7 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_remove_tense_suffix() {
+ int among_var;
B_found_a_match = false;
if (!r_has_min_length()) {
return false;
@@ -1379,499 +889,87 @@ public class TamilStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_1 = limit - cursor;
lab0:
{
- lab1:
- {
- int v_2 = limit - cursor;
- lab2:
- {
- int v_3 = limit - cursor;
- ket = cursor;
- if (find_among_b(a_22) == 0) {
- break lab2;
- }
- bra = cursor;
+ int v_2 = limit - cursor;
+ ket = cursor;
+ among_var = find_among_b(a_25);
+ if (among_var == 0) {
+ break lab0;
+ }
+ bra = cursor;
+ switch (among_var) {
+ case 1:
slice_del();
- B_found_a_match = true;
- cursor = limit - v_3;
- break lab1;
- }
- cursor = limit - v_2;
- lab3:
- {
- int v_4 = limit - cursor;
- ket = cursor;
- lab4:
+ break;
+ case 2:
{
- int v_5 = limit - cursor;
- lab5:
+ int v_3 = limit - cursor;
+ lab1:
{
- if (!(eq_s_b("\u0BAE\u0BBE\u0BB0\u0BCD"))) {
- break lab5;
+ if (find_among_b(a_23) == 0) {
+ break lab1;
}
- break lab4;
- }
- cursor = limit - v_5;
- lab6:
- {
- if (!(eq_s_b("\u0BAE\u0BBF\u0BA9\u0BCD"))) {
- break lab6;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab7:
- {
- if (!(eq_s_b("\u0BA9\u0BA9\u0BCD"))) {
- break lab7;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab8:
- {
- if (!(eq_s_b("\u0BA9\u0BBE\u0BA9\u0BCD"))) {
- break lab8;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab9:
- {
- if (!(eq_s_b("\u0BA9\u0BBE\u0BB3\u0BCD"))) {
- break lab9;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab10:
- {
- if (!(eq_s_b("\u0BA9\u0BBE\u0BB0\u0BCD"))) {
- break lab10;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab11:
- {
- if (!(eq_s_b("\u0BB5\u0BA9\u0BCD"))) {
- break lab11;
- }
- int v_6 = limit - cursor;
- {
- int v_7 = limit - cursor;
- lab12:
- {
- if (find_among_b(a_23) == 0) {
- break lab12;
- }
- break lab11;
- }
- cursor = limit - v_7;
- }
- cursor = limit - v_6;
- break lab4;
- }
- cursor = limit - v_5;
- lab13:
- {
- if (!(eq_s_b("\u0BA9\u0BB3\u0BCD"))) {
- break lab13;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab14:
- {
- if (!(eq_s_b("\u0BB5\u0BB3\u0BCD"))) {
- break lab14;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab15:
- {
- if (!(eq_s_b("\u0BA9\u0BB0\u0BCD"))) {
- break lab15;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab16:
- {
- if (!(eq_s_b("\u0BB5\u0BB0\u0BCD"))) {
- break lab16;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab17:
- {
- if (!(eq_s_b("\u0BA9"))) {
- break lab17;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab18:
- {
- if (!(eq_s_b("\u0BAA"))) {
- break lab18;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab19:
- {
- if (!(eq_s_b("\u0B95"))) {
- break lab19;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab20:
- {
- if (!(eq_s_b("\u0BA4"))) {
- break lab20;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab21:
- {
- if (!(eq_s_b("\u0BAF"))) {
- break lab21;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab22:
- {
- if (!(eq_s_b("\u0BAA\u0BA9\u0BCD"))) {
- break lab22;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab23:
- {
- if (!(eq_s_b("\u0BAA\u0BB3\u0BCD"))) {
- break lab23;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab24:
- {
- if (!(eq_s_b("\u0BAA\u0BB0\u0BCD"))) {
- break lab24;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab25:
- {
- if (!(eq_s_b("\u0BA4\u0BC1"))) {
- break lab25;
- }
- int v_8 = limit - cursor;
- {
- int v_9 = limit - cursor;
- lab26:
- {
- if (find_among_b(a_24) == 0) {
- break lab26;
- }
- break lab25;
- }
- cursor = limit - v_9;
- }
- cursor = limit - v_8;
- break lab4;
- }
- cursor = limit - v_5;
- lab27:
- {
- if (!(eq_s_b("\u0BBF\u0BB1\u0BCD\u0BB1\u0BC1"))) {
- break lab27;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab28:
- {
- if (!(eq_s_b("\u0BAA\u0BAE\u0BCD"))) {
- break lab28;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab29:
- {
- if (!(eq_s_b("\u0BA9\u0BAE\u0BCD"))) {
- break lab29;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab30:
- {
- if (!(eq_s_b("\u0BA4\u0BC1\u0BAE\u0BCD"))) {
- break lab30;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab31:
- {
- if (!(eq_s_b("\u0BB1\u0BC1\u0BAE\u0BCD"))) {
- break lab31;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab32:
- {
- if (!(eq_s_b("\u0B95\u0BC1\u0BAE\u0BCD"))) {
- break lab32;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab33:
- {
- if (!(eq_s_b("\u0BA9\u0BC6\u0BA9\u0BCD"))) {
- break lab33;
- }
- break lab4;
- }
- cursor = limit - v_5;
- lab34:
- {
- if (!(eq_s_b("\u0BA9\u0BC8"))) {
- break lab34;
- }
- break lab4;
- }
- cursor = limit - v_5;
- if (!(eq_s_b("\u0BB5\u0BC8"))) {
- break lab3;
+ break lab0;
}
+ cursor = limit - v_3;
}
- bra = cursor;
slice_del();
- B_found_a_match = true;
- cursor = limit - v_4;
- break lab1;
- }
- cursor = limit - v_2;
- lab35:
- {
- int v_10 = limit - cursor;
- ket = cursor;
- lab36:
+ break;
+ case 3:
{
- int v_11 = limit - cursor;
- lab37:
- {
- if (!(eq_s_b("\u0BBE\u0BA9\u0BCD"))) {
- break lab37;
- }
- int v_12 = limit - cursor;
- {
- int v_13 = limit - cursor;
- lab38:
- {
- if (!(eq_s_b("\u0B9A"))) {
- break lab38;
- }
- break lab37;
- }
- cursor = limit - v_13;
- }
- cursor = limit - v_12;
- break lab36;
- }
- cursor = limit - v_11;
- lab39:
- {
- if (!(eq_s_b("\u0BBE\u0BB3\u0BCD"))) {
- break lab39;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab40:
- {
- if (!(eq_s_b("\u0BBE\u0BB0\u0BCD"))) {
- break lab40;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab41:
- {
- if (!(eq_s_b("\u0BC7\u0BA9\u0BCD"))) {
- break lab41;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab42:
- {
- if (!(eq_s_b("\u0BBE"))) {
- break lab42;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab43:
- {
- if (!(eq_s_b("\u0BBE\u0BAE\u0BCD"))) {
- break lab43;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab44:
- {
- if (!(eq_s_b("\u0BC6\u0BAE\u0BCD"))) {
- break lab44;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab45:
- {
- if (!(eq_s_b("\u0BC7\u0BAE\u0BCD"))) {
- break lab45;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab46:
- {
- if (!(eq_s_b("\u0BCB\u0BAE\u0BCD"))) {
- break lab46;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab47:
- {
- if (!(eq_s_b("\u0B95\u0BC1\u0BAE\u0BCD"))) {
- break lab47;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab48:
- {
- if (!(eq_s_b("\u0BA4\u0BC1\u0BAE\u0BCD"))) {
- break lab48;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab49:
- {
- if (!(eq_s_b("\u0B9F\u0BC1\u0BAE\u0BCD"))) {
- break lab49;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab50:
- {
- if (!(eq_s_b("\u0BB1\u0BC1\u0BAE\u0BCD"))) {
- break lab50;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab51:
- {
- if (!(eq_s_b("\u0BBE\u0BAF\u0BCD"))) {
- break lab51;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab52:
- {
- if (!(eq_s_b("\u0BA9\u0BC6\u0BA9\u0BCD"))) {
- break lab52;
- }
- break lab36;
- }
- cursor = limit - v_11;
- lab53:
+ int v_4 = limit - cursor;
+ lab2:
{
- if (!(eq_s_b("\u0BA9\u0BBF\u0BB0\u0BCD"))) {
- break lab53;
+ if (find_among_b(a_24) == 0) {
+ break lab2;
}
- break lab36;
+ break lab0;
}
- cursor = limit - v_11;
- lab54:
+ cursor = limit - v_4;
+ }
+ slice_del();
+ break;
+ case 4:
+ {
+ int v_5 = limit - cursor;
+ lab3:
{
- if (!(eq_s_b("\u0BC0\u0BB0\u0BCD"))) {
- break lab54;
+ if (!(eq_s_b("\u0B9A"))) {
+ break lab3;
}
- break lab36;
- }
- cursor = limit - v_11;
- if (!(eq_s_b("\u0BC0\u0BAF\u0BB0\u0BCD"))) {
- break lab35;
+ break lab0;
}
+ cursor = limit - v_5;
}
- bra = cursor;
slice_from("\u0BCD");
- B_found_a_match = true;
- cursor = limit - v_10;
- break lab1;
- }
- cursor = limit - v_2;
- int v_14 = limit - cursor;
- ket = cursor;
- lab55:
- {
- int v_15 = limit - cursor;
- lab56:
- {
- if (!(eq_s_b("\u0B95\u0BC1"))) {
- break lab56;
- }
- break lab55;
- }
- cursor = limit - v_15;
- if (!(eq_s_b("\u0BA4\u0BC1"))) {
+ break;
+ case 5:
+ slice_from("\u0BCD");
+ break;
+ case 6:
+ int v_6 = limit - cursor;
+ if (!(eq_s_b("\u0BCD"))) {
break lab0;
}
- }
- int v_16 = limit - cursor;
- if (!(eq_s_b("\u0BCD"))) {
- break lab0;
- }
- cursor = limit - v_16;
- bra = cursor;
- slice_del();
- B_found_a_match = true;
- cursor = limit - v_14;
+ cursor = limit - v_6;
+ slice_del();
+ break;
}
+ B_found_a_match = true;
+ cursor = limit - v_2;
}
cursor = limit - v_1;
- int v_17 = limit - cursor;
- lab57:
+ int v_7 = limit - cursor;
+ lab4:
{
ket = cursor;
- if (find_among_b(a_25) == 0) {
- break lab57;
+ if (find_among_b(a_26) == 0) {
+ break lab4;
}
bra = cursor;
slice_del();
B_found_a_match = true;
}
- cursor = limit - v_17;
+ cursor = limit - v_7;
cursor = limit_backward;
r_fix_endings();
return true;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
index 8f7c6d2b28d..4fb0c27043a 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class TurkishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -1879,10 +1879,11 @@ public class TurkishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_append_U_to_stems_ending_with_d_or_g() {
- int v_1 = limit - cursor;
+ ket = cursor;
+ bra = cursor;
lab0:
{
- int v_2 = limit - cursor;
+ int v_1 = limit - cursor;
lab1:
{
if (!(eq_s_b("d"))) {
@@ -1890,38 +1891,36 @@ public class TurkishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
break lab0;
}
- cursor = limit - v_2;
+ cursor = limit - v_1;
if (!(eq_s_b("g"))) {
return false;
}
}
- cursor = limit - v_1;
- lab2:
- {
- int v_3 = limit - cursor;
+ golab2:
+ while (true) {
+ int v_2 = limit - cursor;
lab3:
{
- int v_4 = limit - cursor;
- golab4:
- while (true) {
- int v_5 = limit - cursor;
- lab5:
- {
- if (!(in_grouping_b(g_vowel, 97, 305))) {
- break lab5;
- }
- cursor = limit - v_5;
- break golab4;
- }
- cursor = limit - v_5;
- if (cursor <= limit_backward) {
- break lab3;
- }
- cursor--;
+ if (!(in_grouping_b(g_vowel, 97, 305))) {
+ break lab3;
}
+ cursor = limit - v_2;
+ break golab2;
+ }
+ cursor = limit - v_2;
+ if (cursor <= limit_backward) {
+ return false;
+ }
+ cursor--;
+ }
+ lab4:
+ {
+ int v_3 = limit - cursor;
+ lab5:
+ {
lab6:
{
- int v_6 = limit - cursor;
+ int v_4 = limit - cursor;
lab7:
{
if (!(eq_s_b("a"))) {
@@ -1929,147 +1928,73 @@ public class TurkishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
break lab6;
}
- cursor = limit - v_6;
+ cursor = limit - v_4;
if (!(eq_s_b("\u0131"))) {
- break lab3;
+ break lab5;
}
}
- cursor = limit - v_4;
- {
- int c = cursor;
- insert(cursor, cursor, "\u0131");
- cursor = c;
- }
- break lab2;
+ slice_from("\u0131");
+ break lab4;
}
cursor = limit - v_3;
lab8:
{
- int v_7 = limit - cursor;
- golab9:
- while (true) {
- int v_8 = limit - cursor;
- lab10:
- {
- if (!(in_grouping_b(g_vowel, 97, 305))) {
- break lab10;
- }
- cursor = limit - v_8;
- break golab9;
- }
- cursor = limit - v_8;
- if (cursor <= limit_backward) {
- break lab8;
- }
- cursor--;
- }
- lab11:
+ lab9:
{
- int v_9 = limit - cursor;
- lab12:
+ int v_5 = limit - cursor;
+ lab10:
{
if (!(eq_s_b("e"))) {
- break lab12;
+ break lab10;
}
- break lab11;
+ break lab9;
}
- cursor = limit - v_9;
+ cursor = limit - v_5;
if (!(eq_s_b("i"))) {
break lab8;
}
}
- cursor = limit - v_7;
- {
- int c = cursor;
- insert(cursor, cursor, "i");
- cursor = c;
- }
- break lab2;
+ slice_from("i");
+ break lab4;
}
cursor = limit - v_3;
- lab13:
+ lab11:
{
- int v_10 = limit - cursor;
- golab14:
- while (true) {
- int v_11 = limit - cursor;
- lab15:
- {
- if (!(in_grouping_b(g_vowel, 97, 305))) {
- break lab15;
- }
- cursor = limit - v_11;
- break golab14;
- }
- cursor = limit - v_11;
- if (cursor <= limit_backward) {
- break lab13;
- }
- cursor--;
- }
- lab16:
+ lab12:
{
- int v_12 = limit - cursor;
- lab17:
+ int v_6 = limit - cursor;
+ lab13:
{
if (!(eq_s_b("o"))) {
- break lab17;
+ break lab13;
}
- break lab16;
+ break lab12;
}
- cursor = limit - v_12;
+ cursor = limit - v_6;
if (!(eq_s_b("u"))) {
- break lab13;
+ break lab11;
}
}
- cursor = limit - v_10;
- {
- int c = cursor;
- insert(cursor, cursor, "u");
- cursor = c;
- }
- break lab2;
+ slice_from("u");
+ break lab4;
}
cursor = limit - v_3;
- int v_13 = limit - cursor;
- golab18:
- while (true) {
- int v_14 = limit - cursor;
- lab19:
- {
- if (!(in_grouping_b(g_vowel, 97, 305))) {
- break lab19;
- }
- cursor = limit - v_14;
- break golab18;
- }
- cursor = limit - v_14;
- if (cursor <= limit_backward) {
- return false;
- }
- cursor--;
- }
- lab20:
+ lab14:
{
- int v_15 = limit - cursor;
- lab21:
+ int v_7 = limit - cursor;
+ lab15:
{
if (!(eq_s_b("\u00F6"))) {
- break lab21;
+ break lab15;
}
- break lab20;
+ break lab14;
}
- cursor = limit - v_15;
+ cursor = limit - v_7;
if (!(eq_s_b("\u00FC"))) {
return false;
}
}
- cursor = limit - v_13;
- {
- int c = cursor;
- insert(cursor, cursor, "\u00FC");
- cursor = c;
- }
+ slice_from("\u00FC");
}
return true;
}
@@ -2094,34 +2019,20 @@ public class TurkishStemmer extends org.tartarus.snowball.SnowballStemmer {
private boolean r_more_than_one_syllable_word() {
int v_1 = cursor;
- {
- int v_2 = 2;
+ for (int v_2 = 2; v_2 > 0; v_2--) {
+ golab0:
while (true) {
- int v_3 = cursor;
- lab0:
+ lab1:
{
- golab1:
- while (true) {
- lab2:
- {
- if (!(in_grouping(g_vowel, 97, 305))) {
- break lab2;
- }
- break golab1;
- }
- if (cursor >= limit) {
- break lab0;
- }
- cursor++;
+ if (!(in_grouping(g_vowel, 97, 305))) {
+ break lab1;
}
- v_2--;
- continue;
+ break golab0;
}
- cursor = v_3;
- break;
- }
- if (v_2 > 0) {
- return false;
+ if (cursor >= limit) {
+ return false;
+ }
+ cursor++;
}
}
cursor = v_1;
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/YiddishStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/YiddishStemmer.java
index 01f0d17e35a..60f280a9dbc 100644
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/YiddishStemmer.java
+++ b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/YiddishStemmer.java
@@ -1,4 +1,4 @@
-// Generated by Snowball 2.0.0 - https://snowballstem.org/
+// Generated by Snowball 2.2.0 - https://snowballstem.org/
package org.tartarus.snowball.ext;
@@ -7,7 +7,7 @@ import org.tartarus.snowball.Among;
/**
* This class implements the stemming algorithm defined by a snowball script.
*
- * <p>Generated by Snowball 2.0.0 - https://snowballstem.org/
+ * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
*/
@SuppressWarnings("unused")
public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
@@ -17,6 +17,17 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
java.lang.invoke.MethodHandles.lookup();
private static final Among a_0[] = {
+ new Among("\u05D5\u05D5", -1, 1),
+ new Among("\u05D5\u05D9", -1, 2),
+ new Among("\u05D9\u05D9", -1, 3),
+ new Among("\u05DA", -1, 4),
+ new Among("\u05DD", -1, 5),
+ new Among("\u05DF", -1, 6),
+ new Among("\u05E3", -1, 7),
+ new Among("\u05E5", -1, 8)
+ };
+
+ private static final Among a_1[] = {
new Among("\u05D0\u05D3\u05D5\u05E8\u05DB", -1, 1),
new Among("\u05D0\u05D4\u05D9\u05E0", -1, 1),
new Among("\u05D0\u05D4\u05E2\u05E8", -1, 1),
@@ -59,93 +70,125 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u05E6\u05E2", -1, 1)
};
- private static final Among a_1[] = {
+ private static final Among a_2[] = {
new Among("\u05D3\u05D6\u05E9", -1, -1),
new Among("\u05E9\u05D8\u05E8", -1, -1),
new Among("\u05E9\u05D8\u05E9", -1, -1),
new Among("\u05E9\u05E4\u05E8", -1, -1)
};
- private static final Among a_2[] = {
+ private static final Among a_3[] = {
+ new Among("\u05E7\u05DC\u05D9\u05D1", -1, 9),
+ new Among("\u05E8\u05D9\u05D1", -1, 10),
+ new Among("\u05D8\u05E8\u05D9\u05D1", 1, 7),
+ new Among("\u05E9\u05E8\u05D9\u05D1", 1, 15),
+ new Among("\u05D4\u05F1\u05D1", -1, 23),
+ new Among("\u05E9\u05F0\u05D9\u05D2", -1, 12),
+ new Among("\u05D2\u05D0\u05E0\u05D2", -1, 1),
+ new Among("\u05D6\u05D5\u05E0\u05D2", -1, 18),
+ new Among("\u05E9\u05DC\u05D5\u05E0\u05D2", -1, 21),
+ new Among("\u05E6\u05F0\u05D5\u05E0\u05D2", -1, 20),
+ new Among("\u05D1\u05F1\u05D2", -1, 22),
+ new Among("\u05D1\u05D5\u05E0\u05D3", -1, 16),
+ new Among("\u05F0\u05D9\u05D6", -1, 6),
+ new Among("\u05D1\u05D9\u05D8", -1, 4),
+ new Among("\u05DC\u05D9\u05D8", -1, 8),
+ new Among("\u05DE\u05D9\u05D8", -1, 3),
+ new Among("\u05E9\u05E0\u05D9\u05D8", -1, 14),
+ new Among("\u05E0\u05D5\u05DE", -1, 2),
+ new Among("\u05E9\u05D8\u05D0\u05E0", -1, 25),
+ new Among("\u05D1\u05D9\u05E1", -1, 5),
+ new Among("\u05E9\u05DE\u05D9\u05E1", -1, 13),
+ new Among("\u05E8\u05D9\u05E1", -1, 11),
+ new Among("\u05D8\u05E8\u05D5\u05E0\u05E7", -1, 19),
+ new Among("\u05E4\u05D0\u05E8\u05DC\u05F1\u05E8", -1, 24),
+ new Among("\u05E9\u05F0\u05F1\u05E8", -1, 26),
+ new Among("\u05F0\u05D5\u05D8\u05E9", -1, 17)
+ };
+
+ private static final Among a_4[] = {
new Among("\u05D5\u05E0\u05D2", -1, 1),
new Among("\u05E1\u05D8\u05D5", -1, 1),
new Among("\u05D8", -1, 1),
new Among("\u05D1\u05E8\u05D0\u05DB\u05D8", 2, 31),
new Among("\u05E1\u05D8", 2, 1),
- new Among("\u05D9\u05E1\u05D8", 4, 1),
- new Among("\u05D2\u05D9\u05E1\u05D8", 5, 33),
- new Among("\u05E9\u05D9\u05E1\u05D8", 5, 33),
+ new Among("\u05D9\u05E1\u05D8", 4, 33),
+ new Among("\u05E2\u05D8", 2, 1),
new Among("\u05E9\u05D0\u05E4\u05D8", 2, 1),
new Among("\u05D4\u05F2\u05D8", 2, 1),
new Among("\u05E7\u05F2\u05D8", 2, 1),
- new Among("\u05D9\u05E7\u05F2\u05D8", 10, 1),
+ new Among("\u05D9\u05E7\u05F2\u05D8", 9, 1),
new Among("\u05DC\u05E2\u05DB", -1, 1),
- new Among("\u05E2\u05DC\u05E2\u05DB", 12, 1),
+ new Among("\u05E2\u05DC\u05E2\u05DB", 11, 1),
new Among("\u05D9\u05D6\u05DE", -1, 1),
new Among("\u05D9\u05DE", -1, 1),
new Among("\u05E2\u05DE", -1, 1),
- new Among("\u05E2\u05E0\u05E2\u05DE", 16, 3),
- new Among("\u05D8\u05E2\u05E0\u05E2\u05DE", 17, 4),
+ new Among("\u05E2\u05E0\u05E2\u05DE", 15, 3),
+ new Among("\u05D8\u05E2\u05E0\u05E2\u05DE", 16, 4),
new Among("\u05E0", -1, 1),
- new Among("\u05E7\u05DC\u05D9\u05D1\u05E0", 19, 14),
- new Among("\u05E8\u05D9\u05D1\u05E0", 19, 15),
- new Among("\u05D8\u05E8\u05D9\u05D1\u05E0", 21, 12),
- new Among("\u05E9\u05E8\u05D9\u05D1\u05E0", 21, 7),
- new Among("\u05D4\u05F1\u05D1\u05E0", 19, 27),
- new Among("\u05E9\u05F0\u05D9\u05D2\u05E0", 19, 17),
- new Among("\u05D6\u05D5\u05E0\u05D2\u05E0", 19, 22),
- new Among("\u05E9\u05DC\u05D5\u05E0\u05D2\u05E0", 19, 25),
- new Among("\u05E6\u05F0\u05D5\u05E0\u05D2\u05E0", 19, 24),
- new Among("\u05D1\u05F1\u05D2\u05E0", 19, 26),
- new Among("\u05D1\u05D5\u05E0\u05D3\u05E0", 19, 20),
- new Among("\u05F0\u05D9\u05D6\u05E0", 19, 11),
- new Among("\u05D8\u05E0", 19, 4),
- new Among("GE\u05D1\u05D9\u05D8\u05E0", 32, 9),
- new Among("GE\u05DC\u05D9\u05D8\u05E0", 32, 13),
- new Among("GE\u05DE\u05D9\u05D8\u05E0", 32, 8),
- new Among("\u05E9\u05E0\u05D9\u05D8\u05E0", 32, 19),
- new Among("\u05E1\u05D8\u05E0", 32, 1),
- new Among("\u05D9\u05E1\u05D8\u05E0", 37, 1),
- new Among("GE\u05D1\u05D9\u05E1\u05E0", 19, 10),
- new Among("\u05E9\u05DE\u05D9\u05E1\u05E0", 19, 18),
- new Among("GE\u05E8\u05D9\u05E1\u05E0", 19, 16),
- new Among("\u05E2\u05E0", 19, 1),
+ new Among("\u05E7\u05DC\u05D9\u05D1\u05E0", 18, 14),
+ new Among("\u05E8\u05D9\u05D1\u05E0", 18, 15),
+ new Among("\u05D8\u05E8\u05D9\u05D1\u05E0", 20, 12),
+ new Among("\u05E9\u05E8\u05D9\u05D1\u05E0", 20, 7),
+ new Among("\u05D4\u05F1\u05D1\u05E0", 18, 27),
+ new Among("\u05E9\u05F0\u05D9\u05D2\u05E0", 18, 17),
+ new Among("\u05D6\u05D5\u05E0\u05D2\u05E0", 18, 22),
+ new Among("\u05E9\u05DC\u05D5\u05E0\u05D2\u05E0", 18, 25),
+ new Among("\u05E6\u05F0\u05D5\u05E0\u05D2\u05E0", 18, 24),
+ new Among("\u05D1\u05F1\u05D2\u05E0", 18, 26),
+ new Among("\u05D1\u05D5\u05E0\u05D3\u05E0", 18, 20),
+ new Among("\u05F0\u05D9\u05D6\u05E0", 18, 11),
+ new Among("\u05D8\u05E0", 18, 4),
+ new Among("GE\u05D1\u05D9\u05D8\u05E0", 31, 9),
+ new Among("GE\u05DC\u05D9\u05D8\u05E0", 31, 13),
+ new Among("GE\u05DE\u05D9\u05D8\u05E0", 31, 8),
+ new Among("\u05E9\u05E0\u05D9\u05D8\u05E0", 31, 19),
+ new Among("\u05E1\u05D8\u05E0", 31, 1),
+ new Among("\u05D9\u05E1\u05D8\u05E0", 36, 1),
+ new Among("\u05E2\u05D8\u05E0", 31, 1),
+ new Among("GE\u05D1\u05D9\u05E1\u05E0", 18, 10),
+ new Among("\u05E9\u05DE\u05D9\u05E1\u05E0", 18, 18),
+ new Among("GE\u05E8\u05D9\u05E1\u05E0", 18, 16),
+ new Among("\u05E2\u05E0", 18, 1),
new Among("\u05D2\u05D0\u05E0\u05D2\u05E2\u05E0", 42, 5),
new Among("\u05E2\u05DC\u05E2\u05E0", 42, 1),
new Among("\u05E0\u05D5\u05DE\u05E2\u05E0", 42, 6),
new Among("\u05D9\u05D6\u05DE\u05E2\u05E0", 42, 1),
new Among("\u05E9\u05D8\u05D0\u05E0\u05E2\u05E0", 42, 29),
- new Among("\u05D8\u05E8\u05D5\u05E0\u05E7\u05E0", 19, 23),
- new Among("\u05E4\u05D0\u05E8\u05DC\u05F1\u05E8\u05E0", 19, 28),
- new Among("\u05E9\u05F0\u05F1\u05E8\u05E0", 19, 30),
- new Among("\u05F0\u05D5\u05D8\u05E9\u05E0", 19, 21),
- new Among("\u05D2\u05F2\u05E0", 19, 5),
+ new Among("\u05D8\u05E8\u05D5\u05E0\u05E7\u05E0", 18, 23),
+ new Among("\u05E4\u05D0\u05E8\u05DC\u05F1\u05E8\u05E0", 18, 28),
+ new Among("\u05E9\u05F0\u05F1\u05E8\u05E0", 18, 30),
+ new Among("\u05F0\u05D5\u05D8\u05E9\u05E0", 18, 21),
+ new Among("\u05D2\u05F2\u05E0", 18, 5),
new Among("\u05E1", -1, 1),
new Among("\u05D8\u05E1", 53, 4),
+ new Among("\u05E2\u05D8\u05E1", 54, 1),
new Among("\u05E0\u05E1", 53, 1),
- new Among("\u05D8\u05E0\u05E1", 55, 4),
- new Among("\u05E2\u05E0\u05E1", 55, 3),
+ new Among("\u05D8\u05E0\u05E1", 56, 4),
+ new Among("\u05E2\u05E0\u05E1", 56, 3),
new Among("\u05E2\u05E1", 53, 1),
- new Among("\u05D9\u05E2\u05E1", 58, 2),
- new Among("\u05E2\u05DC\u05E2\u05E1", 58, 1),
+ new Among("\u05D9\u05E2\u05E1", 59, 2),
+ new Among("\u05E2\u05DC\u05E2\u05E1", 59, 1),
new Among("\u05E2\u05E8\u05E1", 53, 1),
- new Among("\u05E2\u05E0\u05E2\u05E8\u05E1", 61, 1),
+ new Among("\u05E2\u05E0\u05E2\u05E8\u05E1", 62, 1),
new Among("\u05E2", -1, 1),
- new Among("\u05D8\u05E2", 63, 4),
- new Among("\u05E1\u05D8\u05E2", 64, 1),
- new Among("\u05D9\u05E2", 63, -1),
- new Among("\u05E2\u05DC\u05E2", 63, 1),
- new Among("\u05E2\u05E0\u05E2", 63, 3),
- new Among("\u05D8\u05E2\u05E0\u05E2", 68, 4),
+ new Among("\u05D8\u05E2", 64, 4),
+ new Among("\u05E1\u05D8\u05E2", 65, 1),
+ new Among("\u05E2\u05D8\u05E2", 65, 1),
+ new Among("\u05D9\u05E2", 64, -1),
+ new Among("\u05E2\u05DC\u05E2", 64, 1),
+ new Among("\u05E2\u05E0\u05E2", 64, 3),
+ new Among("\u05D8\u05E2\u05E0\u05E2", 70, 4),
new Among("\u05E2\u05E8", -1, 1),
- new Among("\u05D8\u05E2\u05E8", 70, 4),
- new Among("\u05E1\u05D8\u05E2\u05E8", 71, 1),
- new Among("\u05E2\u05E0\u05E2\u05E8", 70, 3),
- new Among("\u05D8\u05E2\u05E0\u05E2\u05E8", 73, 4),
+ new Among("\u05D8\u05E2\u05E8", 72, 4),
+ new Among("\u05E1\u05D8\u05E2\u05E8", 73, 1),
+ new Among("\u05E2\u05D8\u05E2\u05E8", 73, 1),
+ new Among("\u05E2\u05E0\u05E2\u05E8", 72, 3),
+ new Among("\u05D8\u05E2\u05E0\u05E2\u05E8", 76, 4),
new Among("\u05D5\u05EA", -1, 32)
};
- private static final Among a_3[] = {
+ private static final Among a_5[] = {
new Among("\u05D5\u05E0\u05D2", -1, 1),
new Among("\u05E9\u05D0\u05E4\u05D8", -1, 1),
new Among("\u05D4\u05F2\u05D8", -1, 1),
@@ -154,12 +197,12 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
new Among("\u05DC", -1, 2)
};
- private static final Among a_4[] = {
+ private static final Among a_6[] = {
new Among("\u05D9\u05D2", -1, 1),
new Among("\u05D9\u05E7", -1, 1),
new Among("\u05D3\u05D9\u05E7", 1, 1),
new Among("\u05E0\u05D3\u05D9\u05E7", 2, 1),
- new Among("\u05E2\u05E0\u05D3\u05D9\u05E7", 3, 2),
+ new Among("\u05E2\u05E0\u05D3\u05D9\u05E7", 3, 1),
new Among("\u05D1\u05DC\u05D9\u05E7", 1, -1),
new Among("\u05D2\u05DC\u05D9\u05E7", 1, -1),
new Among("\u05E0\u05D9\u05E7", 1, 1),
@@ -176,6 +219,7 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
private int I_p1;
private boolean r_prelude() {
+ int among_var;
int v_1 = cursor;
lab0:
{
@@ -188,125 +232,70 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
int v_3 = cursor;
lab3:
{
- lab4:
- {
- int v_4 = cursor;
- lab5:
- {
- bra = cursor;
- if (!(eq_s("\u05D5\u05D5"))) {
- break lab5;
- }
- ket = cursor;
+ bra = cursor;
+ among_var = find_among(a_0);
+ if (among_var == 0) {
+ break lab3;
+ }
+ ket = cursor;
+ switch (among_var) {
+ case 1:
{
- int v_5 = cursor;
- lab6:
+ int v_4 = cursor;
+ lab4:
{
if (!(eq_s("\u05BC"))) {
- break lab6;
+ break lab4;
}
- break lab5;
+ break lab3;
}
- cursor = v_5;
+ cursor = v_4;
}
slice_from("\u05F0");
- break lab4;
- }
- cursor = v_4;
- lab7:
- {
- bra = cursor;
- if (!(eq_s("\u05D5\u05D9"))) {
- break lab7;
- }
- ket = cursor;
+ break;
+ case 2:
{
- int v_6 = cursor;
- lab8:
+ int v_5 = cursor;
+ lab5:
{
if (!(eq_s("\u05B4"))) {
- break lab8;
+ break lab5;
}
- break lab7;
+ break lab3;
}
- cursor = v_6;
+ cursor = v_5;
}
slice_from("\u05F1");
- break lab4;
- }
- cursor = v_4;
- lab9:
- {
- bra = cursor;
- if (!(eq_s("\u05D9\u05D9"))) {
- break lab9;
- }
- ket = cursor;
+ break;
+ case 3:
{
- int v_7 = cursor;
- lab10:
+ int v_6 = cursor;
+ lab6:
{
if (!(eq_s("\u05B4"))) {
- break lab10;
+ break lab6;
}
- break lab9;
+ break lab3;
}
- cursor = v_7;
+ cursor = v_6;
}
slice_from("\u05F2");
- break lab4;
- }
- cursor = v_4;
- lab11:
- {
- bra = cursor;
- if (!(eq_s("\u05DA"))) {
- break lab11;
- }
- ket = cursor;
+ break;
+ case 4:
slice_from("\u05DB");
- break lab4;
- }
- cursor = v_4;
- lab12:
- {
- bra = cursor;
- if (!(eq_s("\u05DD"))) {
- break lab12;
- }
- ket = cursor;
+ break;
+ case 5:
slice_from("\u05DE");
- break lab4;
- }
- cursor = v_4;
- lab13:
- {
- bra = cursor;
- if (!(eq_s("\u05DF"))) {
- break lab13;
- }
- ket = cursor;
+ break;
+ case 6:
slice_from("\u05E0");
- break lab4;
- }
- cursor = v_4;
- lab14:
- {
- bra = cursor;
- if (!(eq_s("\u05E3"))) {
- break lab14;
- }
- ket = cursor;
+ break;
+ case 7:
slice_from("\u05E4");
- break lab4;
- }
- cursor = v_4;
- bra = cursor;
- if (!(eq_s("\u05E5"))) {
- break lab3;
- }
- ket = cursor;
- slice_from("\u05E6");
+ break;
+ case 8:
+ slice_from("\u05E6");
+ break;
}
cursor = v_3;
break golab2;
@@ -324,40 +313,40 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
}
cursor = v_1;
- int v_8 = cursor;
- lab15:
+ int v_7 = cursor;
+ lab7:
{
while (true) {
- int v_9 = cursor;
- lab16:
+ int v_8 = cursor;
+ lab8:
{
- golab17:
+ golab9:
while (true) {
- int v_10 = cursor;
- lab18:
+ int v_9 = cursor;
+ lab10:
{
bra = cursor;
if (!(in_grouping(g_niked, 1456, 1474))) {
- break lab18;
+ break lab10;
}
ket = cursor;
slice_del();
- cursor = v_10;
- break golab17;
+ cursor = v_9;
+ break golab9;
}
- cursor = v_10;
+ cursor = v_9;
if (cursor >= limit) {
- break lab16;
+ break lab8;
}
cursor++;
}
continue;
}
- cursor = v_9;
+ cursor = v_8;
break;
}
}
- cursor = v_8;
+ cursor = v_7;
return true;
}
@@ -372,156 +361,173 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab0;
}
ket = cursor;
+ {
+ int v_2 = cursor;
+ lab1:
+ {
+ lab2:
+ {
+ int v_3 = cursor;
+ lab3:
+ {
+ if (!(eq_s("\u05DC\u05D8"))) {
+ break lab3;
+ }
+ break lab2;
+ }
+ cursor = v_3;
+ if (!(eq_s("\u05D1\u05E0"))) {
+ break lab1;
+ }
+ }
+ cursor = v_1;
+ break lab0;
+ }
+ cursor = v_2;
+ }
slice_from("GE");
}
- int v_2 = cursor;
- lab1:
+ int v_4 = cursor;
+ lab4:
{
- if (find_among(a_0) == 0) {
- cursor = v_2;
- break lab1;
+ if (find_among(a_1) == 0) {
+ cursor = v_4;
+ break lab4;
}
- lab2:
+ lab5:
{
- int v_3 = cursor;
- lab3:
+ int v_5 = cursor;
+ lab6:
{
- lab4:
+ int v_6 = cursor;
+ lab7:
{
- int v_4 = cursor;
- lab5:
+ int v_7 = cursor;
+ lab8:
{
if (!(eq_s("\u05E6\u05D5\u05D2\u05E0"))) {
- break lab5;
+ break lab8;
}
- break lab4;
+ break lab7;
}
- cursor = v_4;
- lab6:
+ cursor = v_7;
+ lab9:
{
if (!(eq_s("\u05E6\u05D5\u05E7\u05D8"))) {
- break lab6;
+ break lab9;
}
- break lab4;
+ break lab7;
}
- cursor = v_4;
+ cursor = v_7;
if (!(eq_s("\u05E6\u05D5\u05E7\u05E0"))) {
- break lab3;
+ break lab6;
}
}
- {
- int v_5 = cursor;
- lab7:
- {
- {
- int c = cursor + 1;
- if (0 > c || c > limit) {
- break lab7;
- }
- cursor = c;
- }
- break lab3;
- }
- cursor = v_5;
+ if (cursor < limit) {
+ break lab6;
}
- {
- int c = cursor + -4;
- if (0 > c || c > limit) {
- break lab3;
- }
- cursor = c;
+ cursor = v_6;
+ break lab5;
+ }
+ cursor = v_5;
+ lab10:
+ {
+ int v_8 = cursor;
+ if (!(eq_s("\u05D2\u05E2\u05D1\u05E0"))) {
+ break lab10;
}
- break lab2;
+ cursor = v_8;
+ break lab5;
}
- cursor = v_3;
- lab8:
+ cursor = v_5;
+ lab11:
{
bra = cursor;
if (!(eq_s("\u05D2\u05E2"))) {
- break lab8;
+ break lab11;
}
ket = cursor;
slice_from("GE");
- break lab2;
+ break lab5;
}
- cursor = v_3;
+ cursor = v_5;
bra = cursor;
if (!(eq_s("\u05E6\u05D5"))) {
- cursor = v_2;
- break lab1;
+ cursor = v_4;
+ break lab4;
}
ket = cursor;
slice_from("TSU");
}
}
- int v_6 = cursor;
+ int v_9 = cursor;
{
int c = cursor + 3;
- if (0 > c || c > limit) {
+ if (c > limit) {
return false;
}
cursor = c;
}
I_x = cursor;
- cursor = v_6;
- int v_7 = cursor;
- lab9:
+ cursor = v_9;
+ int v_10 = cursor;
+ lab12:
{
- if (find_among(a_1) == 0) {
- cursor = v_7;
- break lab9;
+ if (find_among(a_2) == 0) {
+ cursor = v_10;
+ break lab12;
}
}
{
- int v_8 = cursor;
- lab10:
+ int v_11 = cursor;
+ lab13:
{
if (!(in_grouping(g_consonant, 1489, 1520))) {
- break lab10;
+ break lab13;
}
if (!(in_grouping(g_consonant, 1489, 1520))) {
- break lab10;
+ break lab13;
}
if (!(in_grouping(g_consonant, 1489, 1520))) {
- break lab10;
+ break lab13;
}
I_p1 = cursor;
return false;
}
- cursor = v_8;
+ cursor = v_11;
}
- golab11:
+ golab14:
while (true) {
- int v_9 = cursor;
- lab12:
+ int v_12 = cursor;
+ lab15:
{
if (!(in_grouping(g_vowel, 1488, 1522))) {
- break lab12;
+ break lab15;
}
- cursor = v_9;
- break golab11;
+ cursor = v_12;
+ break golab14;
}
- cursor = v_9;
+ cursor = v_12;
if (cursor >= limit) {
return false;
}
cursor++;
}
while (true) {
- lab13:
+ lab16:
{
if (!(in_grouping(g_vowel, 1488, 1522))) {
- break lab13;
+ break lab16;
}
continue;
}
break;
}
I_p1 = cursor;
- lab14:
+ lab17:
{
- if (!(I_p1 < I_x)) {
- break lab14;
+ if (I_p1 >= I_x) {
+ break lab17;
}
I_p1 = I_x;
}
@@ -529,10 +535,11 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
}
private boolean r_R1() {
- if (!(I_p1 <= cursor)) {
- return false;
- }
- return true;
+ return I_p1 <= cursor;
+ }
+
+ private boolean r_R1plus3() {
+ return I_p1 <= (cursor + 3);
}
private boolean r_standard_suffix() {
@@ -541,7 +548,7 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
lab0:
{
ket = cursor;
- among_var = find_among_b(a_2);
+ among_var = find_among_b(a_4);
if (among_var == 0) {
break lab0;
}
@@ -564,493 +571,122 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
break lab0;
}
slice_del();
- {
- int v_2 = limit - cursor;
- lab1:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D2\u05D0\u05E0\u05D2"))) {
- break lab1;
- }
- bra = cursor;
- slice_from("\u05D2\u05F2");
- break lab0;
- }
- cursor = limit - v_2;
+ ket = cursor;
+ among_var = find_among_b(a_3);
+ if (among_var == 0) {
+ break lab0;
}
- {
- int v_3 = limit - cursor;
- lab2:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E0\u05D5\u05DE"))) {
- break lab2;
- }
- bra = cursor;
+ bra = cursor;
+ switch (among_var) {
+ case 1:
+ slice_from("\u05D2\u05F2");
+ break;
+ case 2:
slice_from("\u05E0\u05E2\u05DE");
- break lab0;
- }
- cursor = limit - v_3;
- }
- {
- int v_4 = limit - cursor;
- lab3:
- {
- ket = cursor;
- if (!(eq_s_b("\u05DE\u05D9\u05D8"))) {
- break lab3;
- }
- bra = cursor;
+ break;
+ case 3:
slice_from("\u05DE\u05F2\u05D3");
- break lab0;
- }
- cursor = limit - v_4;
- }
- {
- int v_5 = limit - cursor;
- lab4:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D1\u05D9\u05D8"))) {
- break lab4;
- }
- bra = cursor;
+ break;
+ case 4:
slice_from("\u05D1\u05F2\u05D8");
- break lab0;
- }
- cursor = limit - v_5;
- }
- {
- int v_6 = limit - cursor;
- lab5:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D1\u05D9\u05E1"))) {
- break lab5;
- }
- bra = cursor;
+ break;
+ case 5:
slice_from("\u05D1\u05F2\u05E1");
- break lab0;
- }
- cursor = limit - v_6;
- }
- {
- int v_7 = limit - cursor;
- lab6:
- {
- ket = cursor;
- if (!(eq_s_b("\u05F0\u05D9\u05D6"))) {
- break lab6;
- }
- bra = cursor;
+ break;
+ case 6:
slice_from("\u05F0\u05F2\u05D6");
- break lab0;
- }
- cursor = limit - v_7;
- }
- {
- int v_8 = limit - cursor;
- lab7:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D8\u05E8\u05D9\u05D1"))) {
- break lab7;
- }
- bra = cursor;
+ break;
+ case 7:
slice_from("\u05D8\u05E8\u05F2\u05D1");
- break lab0;
- }
- cursor = limit - v_8;
- }
- {
- int v_9 = limit - cursor;
- lab8:
- {
- ket = cursor;
- if (!(eq_s_b("\u05DC\u05D9\u05D8"))) {
- break lab8;
- }
- bra = cursor;
+ break;
+ case 8:
slice_from("\u05DC\u05F2\u05D8");
- break lab0;
- }
- cursor = limit - v_9;
- }
- {
- int v_10 = limit - cursor;
- lab9:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E7\u05DC\u05D9\u05D1"))) {
- break lab9;
- }
- bra = cursor;
+ break;
+ case 9:
slice_from("\u05E7\u05DC\u05F2\u05D1");
- break lab0;
- }
- cursor = limit - v_10;
- }
- {
- int v_11 = limit - cursor;
- lab10:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E8\u05D9\u05D1"))) {
- break lab10;
- }
- bra = cursor;
+ break;
+ case 10:
slice_from("\u05E8\u05F2\u05D1");
- break lab0;
- }
- cursor = limit - v_11;
- }
- {
- int v_12 = limit - cursor;
- lab11:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E8\u05D9\u05E1"))) {
- break lab11;
- }
- bra = cursor;
+ break;
+ case 11:
slice_from("\u05E8\u05F2\u05E1");
- break lab0;
- }
- cursor = limit - v_12;
- }
- {
- int v_13 = limit - cursor;
- lab12:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05F0\u05D9\u05D2"))) {
- break lab12;
- }
- bra = cursor;
+ break;
+ case 12:
slice_from("\u05E9\u05F0\u05F2\u05D2");
- break lab0;
- }
- cursor = limit - v_13;
- }
- {
- int v_14 = limit - cursor;
- lab13:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05DE\u05D9\u05E1"))) {
- break lab13;
- }
- bra = cursor;
+ break;
+ case 13:
slice_from("\u05E9\u05DE\u05F2\u05E1");
- break lab0;
- }
- cursor = limit - v_14;
- }
- {
- int v_15 = limit - cursor;
- lab14:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05E0\u05D9\u05D8"))) {
- break lab14;
- }
- bra = cursor;
+ break;
+ case 14:
slice_from("\u05E9\u05E0\u05F2\u05D3");
- break lab0;
- }
- cursor = limit - v_15;
- }
- {
- int v_16 = limit - cursor;
- lab15:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05E8\u05D9\u05D1"))) {
- break lab15;
- }
- bra = cursor;
+ break;
+ case 15:
slice_from("\u05E9\u05E8\u05F2\u05D1");
- break lab0;
- }
- cursor = limit - v_16;
- }
- {
- int v_17 = limit - cursor;
- lab16:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D1\u05D5\u05E0\u05D3"))) {
- break lab16;
- }
- bra = cursor;
+ break;
+ case 16:
slice_from("\u05D1\u05D9\u05E0\u05D3");
- break lab0;
- }
- cursor = limit - v_17;
- }
- {
- int v_18 = limit - cursor;
- lab17:
- {
- ket = cursor;
- if (!(eq_s_b("\u05F0\u05D5\u05D8\u05E9"))) {
- break lab17;
- }
- bra = cursor;
+ break;
+ case 17:
slice_from("\u05F0\u05D9\u05D8\u05E9");
- break lab0;
- }
- cursor = limit - v_18;
- }
- {
- int v_19 = limit - cursor;
- lab18:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D6\u05D5\u05E0\u05D2"))) {
- break lab18;
- }
- bra = cursor;
+ break;
+ case 18:
slice_from("\u05D6\u05D9\u05E0\u05D2");
- break lab0;
- }
- cursor = limit - v_19;
- }
- {
- int v_20 = limit - cursor;
- lab19:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D8\u05E8\u05D5\u05E0\u05E7"))) {
- break lab19;
- }
- bra = cursor;
+ break;
+ case 19:
slice_from("\u05D8\u05E8\u05D9\u05E0\u05E7");
- break lab0;
- }
- cursor = limit - v_20;
- }
- {
- int v_21 = limit - cursor;
- lab20:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E6\u05F0\u05D5\u05E0\u05D2"))) {
- break lab20;
- }
- bra = cursor;
+ break;
+ case 20:
slice_from("\u05E6\u05F0\u05D9\u05E0\u05D2");
- break lab0;
- }
- cursor = limit - v_21;
- }
- {
- int v_22 = limit - cursor;
- lab21:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05DC\u05D5\u05E0\u05D2"))) {
- break lab21;
- }
- bra = cursor;
+ break;
+ case 21:
slice_from("\u05E9\u05DC\u05D9\u05E0\u05D2");
- break lab0;
- }
- cursor = limit - v_22;
- }
- {
- int v_23 = limit - cursor;
- lab22:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D1\u05F1\u05D2"))) {
- break lab22;
- }
- bra = cursor;
+ break;
+ case 22:
slice_from("\u05D1\u05F2\u05D2");
- break lab0;
- }
- cursor = limit - v_23;
- }
- {
- int v_24 = limit - cursor;
- lab23:
- {
- ket = cursor;
- if (!(eq_s_b("\u05D4\u05F1\u05D1"))) {
- break lab23;
- }
- bra = cursor;
+ break;
+ case 23:
slice_from("\u05D4\u05F2\u05D1");
- break lab0;
- }
- cursor = limit - v_24;
- }
- {
- int v_25 = limit - cursor;
- lab24:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E4\u05D0\u05E8\u05DC\u05F1\u05E8"))) {
- break lab24;
- }
- bra = cursor;
+ break;
+ case 24:
slice_from("\u05E4\u05D0\u05E8\u05DC\u05D9\u05E8");
- break lab0;
- }
- cursor = limit - v_25;
- }
- {
- int v_26 = limit - cursor;
- lab25:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05D8\u05D0\u05E0"))) {
- break lab25;
- }
- bra = cursor;
+ break;
+ case 25:
slice_from("\u05E9\u05D8\u05F2");
- break lab0;
- }
- cursor = limit - v_26;
- }
- {
- int v_27 = limit - cursor;
- lab26:
- {
- ket = cursor;
- if (!(eq_s_b("\u05E9\u05F0\u05F1\u05E8"))) {
- break lab26;
- }
- bra = cursor;
+ break;
+ case 26:
slice_from("\u05E9\u05F0\u05E2\u05E8");
- break lab0;
- }
- cursor = limit - v_27;
+ break;
}
break;
case 4:
+ lab1:
{
- int v_28 = limit - cursor;
- lab27:
+ int v_2 = limit - cursor;
+ lab2:
{
if (!r_R1()) {
- break lab27;
+ break lab2;
}
slice_del();
- {
- int v_29 = limit - cursor;
- lab28:
- {
- ket = cursor;
- lab29:
- {
- int v_30 = limit - cursor;
- lab30:
- {
- if (!(eq_s_b("\u05D2\u05E2\u05D1\u05E8\u05D0\u05DB"))) {
- break lab30;
- }
- break lab29;
- }
- cursor = limit - v_30;
- if (!(eq_s_b("\u05D1\u05E8\u05D0\u05DB"))) {
- break lab28;
- }
- }
- bra = cursor;
- slice_from("\u05D1\u05E8\u05E2\u05E0\u05D2");
- break lab27;
- }
- cursor = limit - v_29;
- }
- break lab0;
- }
- cursor = limit - v_28;
- }
- while (true) {
- lab31:
- {
- {
- int c = cursor - -1;
- if (limit_backward > c || c > limit) {
- break lab31;
- }
- cursor = c;
- }
- continue;
+ break lab1;
}
- break;
+ cursor = limit - v_2;
+ slice_from("\u05D8");
}
ket = cursor;
- lab32:
+ if (!(eq_s_b("\u05D1\u05E8\u05D0\u05DB"))) {
+ break lab0;
+ }
+ int v_3 = limit - cursor;
+ lab3:
{
- int v_32 = limit - cursor;
- lab33:
- {
- if (!(eq_s_b("\u05E2\u05E0\u05E2\u05E8"))) {
- break lab33;
- }
- break lab32;
- }
- cursor = limit - v_32;
- lab34:
- {
- if (!(eq_s_b("\u05E2\u05E0\u05E2\u05DE"))) {
- break lab34;
- }
- break lab32;
- }
- cursor = limit - v_32;
- lab35:
- {
- if (!(eq_s_b("\u05E2\u05E0\u05E2"))) {
- break lab35;
- }
- break lab32;
- }
- cursor = limit - v_32;
- lab36:
- {
- if (!(eq_s_b("\u05E0"))) {
- break lab36;
- }
- break lab32;
- }
- cursor = limit - v_32;
- lab37:
- {
- if (!(eq_s_b("\u05E2\u05E8"))) {
- break lab37;
- }
- break lab32;
- }
- cursor = limit - v_32;
- lab38:
- {
- if (!(eq_s_b("\u05E0\u05E1"))) {
- break lab38;
- }
- break lab32;
- }
- cursor = limit - v_32;
- lab39:
- {
- if (!(eq_s_b("\u05E2"))) {
- break lab39;
- }
- break lab32;
- }
- cursor = limit - v_32;
- if (!(eq_s_b("\u05E1"))) {
- break lab0;
+ if (!(eq_s_b("\u05D2\u05E2"))) {
+ cursor = limit - v_3;
+ break lab3;
}
}
bra = cursor;
- if (!r_R1()) {
- break lab0;
- }
- slice_del();
+ slice_from("\u05D1\u05E8\u05E2\u05E0\u05D2");
break;
case 5:
slice_from("\u05D2\u05F2");
@@ -1140,196 +776,140 @@ public class YiddishStemmer extends org.tartarus.snowball.SnowballStemmer {
slice_from("\u05D4");
break;
case 33:
+ lab4:
{
- int c = cursor - -4;
- if (limit_backward > c || c > limit) {
+ int v_4 = limit - cursor;
+ lab5:
+ {
+ lab6:
+ {
+ int v_5 = limit - cursor;
+ lab7:
+ {
+ if (!(eq_s_b("\u05D2"))) {
+ break lab7;
+ }
+ break lab6;
+ }
+ cursor = limit - v_5;
+ if (!(eq_s_b("\u05E9"))) {
+ break lab5;
+ }
+ }
+ int v_6 = limit - cursor;
+ lab8:
+ {
+ if (!r_R1plus3()) {
+ cursor = limit - v_6;
+ break lab8;
+ }
+ slice_from("\u05D9\u05E1");
+ }
+ break lab4;
+ }
+ cursor = limit - v_4;
+ if (!r_R1()) {
break lab0;
}
- cursor = c;
+ slice_del();
}
- ket = cursor;
- if (!(eq_s_b("\u05D8"))) {
- break lab0;
- }
- bra = cursor;
- if (!r_R1()) {
- break lab0;
- }
- slice_del();
break;
}
}
cursor = limit - v_1;
- int v_33 = limit - cursor;
- lab40:
+ int v_7 = limit - cursor;
+ lab9:
{
ket = cursor;
- among_var = find_among_b(a_3);
+ among_var = find_among_b(a_5);
if (among_var == 0) {
- break lab40;
+ break lab9;
}
bra = cursor;
switch (among_var) {
case 1:
if (!r_R1()) {
- break lab40;
+ break lab9;
}
slice_del();
break;
case 2:
if (!r_R1()) {
- break lab40;
+ break lab9;
}
if (!(in_grouping_b(g_consonant, 1489, 1520))) {
- break lab40;
+ break lab9;
}
slice_del();
break;
}
}
- cursor = limit - v_33;
- int v_34 = limit - cursor;
- lab41:
+ cursor = limit - v_7;
+ int v_8 = limit - cursor;
+ lab10:
{
ket = cursor;
- among_var = find_among_b(a_4);
+ among_var = find_among_b(a_6);
if (among_var == 0) {
- break lab41;
+ break lab10;
}
bra = cursor;
switch (among_var) {
case 1:
if (!r_R1()) {
- break lab41;
- }
- slice_del();
- break;
- case 2:
- if (!r_R1()) {
- break lab41;
- }
- {
- int v_35 = limit - cursor;
- lab42:
- {
- int v_36 = limit - cursor;
- lab43:
- {
- int v_37 = limit - cursor;
- lab44:
- {
- if (!(eq_s_b("\u05E0\u05D2"))) {
- break lab44;
- }
- break lab43;
- }
- cursor = limit - v_37;
- lab45:
- {
- if (!(eq_s_b("\u05E0\u05E7"))) {
- break lab45;
- }
- break lab43;
- }
- cursor = limit - v_37;
- lab46:
- {
- if (!(eq_s_b("\u05E0"))) {
- break lab46;
- }
- break lab43;
- }
- cursor = limit - v_37;
- lab47:
- {
- if (!(eq_s_b("\u05DE"))) {
- break lab47;
- }
- break lab43;
- }
- cursor = limit - v_37;
- lab48:
- {
- if (!(eq_s_b("Lamed"))) {
- break lab48;
- }
- if (!(in_grouping_b(g_consonant, 1489, 1520))) {
- break lab48;
- }
- break lab43;
- }
- cursor = limit - v_37;
- if (!(in_grouping_b(g_vowel, 1488, 1522))) {
- break lab42;
- }
- }
- cursor = limit - v_36;
- slice_del();
- break lab41;
- }
- cursor = limit - v_35;
- }
- {
- int c = cursor - -5;
- if (limit_backward > c || c > limit) {
- break lab41;
- }
- cursor = c;
- }
- if (!(eq_s_b("\u05E0\u05D3\u05D9\u05E7"))) {
- break lab41;
+ break lab10;
}
slice_del();
break;
}
}
- cursor = limit - v_34;
- int v_38 = limit - cursor;
- lab49:
+ cursor = limit - v_8;
+ int v_9 = limit - cursor;
+ lab11:
{
while (true) {
- int v_39 = limit - cursor;
- lab50:
+ int v_10 = limit - cursor;
+ lab12:
{
- golab51:
+ golab13:
while (true) {
- int v_40 = limit - cursor;
- lab52:
+ int v_11 = limit - cursor;
+ lab14:
{
ket = cursor;
- lab53:
+ lab15:
{
- int v_41 = limit - cursor;
- lab54:
+ int v_12 = limit - cursor;
+ lab16:
{
if (!(eq_s_b("GE"))) {
- break lab54;
+ break lab16;
}
- break lab53;
+ break lab15;
}
- cursor = limit - v_41;
+ cursor = limit - v_12;
if (!(eq_s_b("TSU"))) {
- break lab52;
+ break lab14;
}
}
bra = cursor;
slice_del();
- cursor = limit - v_40;
- break golab51;
+ cursor = limit - v_11;
+ break golab13;
}
- cursor = limit - v_40;
+ cursor = limit - v_11;
if (cursor <= limit_backward) {
- break lab50;
+ break lab12;
}
cursor--;
}
continue;
}
- cursor = limit - v_39;
+ cursor = limit - v_10;
break;
}
}
- cursor = limit - v_38;
+ cursor = limit - v_9;
return true;
}
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/ga/stopwords.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/irish_stop.txt
similarity index 59%
rename from lucene/analysis/common/src/resources/org/apache/lucene/analysis/ga/stopwords.txt
rename to lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/irish_stop.txt
index 9ff88d747e5..395db9e7ef2 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/ga/stopwords.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/irish_stop.txt
@@ -1,3 +1,11 @@
+ | From https://snowballstem.org/algorithms/irish/stop.txt
+ | This file is distributed under the BSD License.
+ | See https://snowballstem.org/license.html
+ | Also see https://opensource.org/licenses/bsd-license.html
+ | - Encoding was converted to UTF-8.
+ | - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
a
ach
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
index a5f056b0351..d1d0d100880 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
@@ -120,7 +120,7 @@ vilka | who, that
ditt | thy
vem | who
vilket | who, that
-sitta | his
+sitt | his
sådana | such a
vart | each
dina | thy
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/ro/TestRomanianAnalyzer.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/ro/TestRomanianAnalyzer.java
index d41b76ba741..773ea503e4c 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/ro/TestRomanianAnalyzer.java
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/ro/TestRomanianAnalyzer.java
@@ -27,12 +27,14 @@ public class TestRomanianAnalyzer extends BaseTokenStreamTestCase {
new RomanianAnalyzer().close();
}
- /** test stopwords and stemming */
+ /** test stopwords, normalization and stemming */
public void testBasics() throws IOException {
Analyzer a = new RomanianAnalyzer();
// stemming
- checkOneTerm(a, "absenţa", "absenţ");
- checkOneTerm(a, "absenţi", "absenţ");
+ checkOneTerm(a, "absența", "absenț");
+ checkOneTerm(a, "absenți", "absenț");
+ // normalization
+ checkOneTerm(a, "absenţ", "absenț");
// stopword
assertAnalyzesTo(a, "îl", new String[] {});
a.close();
@@ -40,10 +42,10 @@ public class TestRomanianAnalyzer extends BaseTokenStreamTestCase {
/** test use of exclusion set */
public void testExclude() throws IOException {
- CharArraySet exclusionSet = new CharArraySet(asSet("absenţa"), false);
+ CharArraySet exclusionSet = new CharArraySet(asSet("absența"), false);
Analyzer a = new RomanianAnalyzer(RomanianAnalyzer.getDefaultStopSet(), exclusionSet);
- checkOneTerm(a, "absenţa", "absenţa");
- checkOneTerm(a, "absenţi", "absenţ");
+ checkOneTerm(a, "absența", "absența");
+ checkOneTerm(a, "absenți", "absenț");
a.close();
}
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/english.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/english.zip
index b045ca202af..2f338a4dc90 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/english.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/english.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german.zip
index 41ba1df3306..03fe83238fd 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german2.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german2.zip
deleted file mode 100644
index 03fe83238fd..00000000000
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/german2.zip and /dev/null differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/italian.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/italian.zip
index b7edaef6803..84ee28fe147 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/italian.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/italian.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt
index d60456ddcf5..f238832aaa5 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt
@@ -8,7 +8,6 @@ English
Estonian
Finnish
French
-German2
German
Greek
Hindi
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/lovins.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/lovins.zip
index 4a53b01ef06..b1b2fca98f5 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/lovins.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/lovins.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/porter.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/porter.zip
index 38a219ba668..cea5e25bc0d 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/porter.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/porter.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/romanian.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/romanian.zip
index 1932ad095af..6bdb6dff59e 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/romanian.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/romanian.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/swedish.zip b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/swedish.zip
index 68dff370fb1..c1b20ffe5fe 100644
Binary files a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/swedish.zip and b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/swedish.zip differ
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/test_languages.txt b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/test_languages.txt
index 5a7629e671c..17f079c399c 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/test_languages.txt
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/test_languages.txt
@@ -3,7 +3,6 @@ dutch
english
finnish
german
-german2
hungarian
irish
italian