Skip to content

Commit cd4d343

Browse files
committed
Solving the important problems of the world: lemma for gooier, gooiest -> gooey
1 parent cf9d341 commit cd4d343

File tree

2 files changed

+66213
-66172
lines changed

2 files changed

+66213
-66172
lines changed

src/edu/stanford/nlp/process/Morpha.flex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,9 @@ E_ADJS = "able"|"absolute"|"abstruse"|"acute"|"ample"|"austere"|"bare"|"base"|"b
469469
/* adjectives such as hot which become hotter, hottest */
470470
XX_ADJS = "awfull"|"badd"|"bigg"|"bumm"|"carefull"|"cheerfull"|"cruell"|"dimm"|"dolefull"|"drabb"|"dunn"|"fatt"|"fearfull"|"fitt"|"flatt"|"flipp"|"fruitfull"|"full"|"gladd"|"glibb"|"glumm"|"gracefull"|"gratefull"|"grimm"|"grumm"|"hipp"|"hott"|"joyfull"|"levell"|"madd"|"mournfull"|"painfull"|"peacefull"|"pitifull"|"primm"|"redd"|"rumm"|"sadd"|"slimm"|"smugg"|"snugg"|"squatt"|"tann"|"thankfull"|"thinn"|"tranquill"|"trimm"|"wann"|"wett"|"woefull"|"wonderfull"
471471

472+
/* adjectives such as gooey which become gooier, gooiest */
473+
EY_ADJS = "cag"|"cak"|"clay"|"cliqu"|"crep"|"dic"|"dop"|"glu"|"goo"|"grip"|"hok"|"hom"|"hors"|"jok"|"lak"|"mop"|"shal"
474+
472475

473476
%%
474477

@@ -2097,6 +2100,8 @@ XX_ADJS = "awfull"|"badd"|"bigg"|"bumm"|"carefull"|"cheerfull"|"cruell"|"dimm"|"
20972100
<scan>{E_ADJS}st/_JJ { return(stem(2, "", "")); }
20982101
<scan>{XX_ADJS}er/_JJ { return(stem(3, "", "")); }
20992102
<scan>{XX_ADJS}est/_JJ { return(stem(4, "", "")); }
2103+
<scan>{EY_ADJS}ier/_JJ { return(stem(3, "ey", "")); }
2104+
<scan>{EY_ADJS}iest/_JJ { return(stem(4, "ey", "")); }
21002105

21012106
<scan>{G}+/_NN[^P] { yybegin(noun); yypushback(yylength()); return(next()); }
21022107
<scan>{G}+/_NNP { return(proper_name_stem()); }

0 commit comments

Comments
 (0)