Step 1c replaces suffix -y or -Y by -i if preceded by a non-vowel which is not the first letter of the word (cry => cri, by => by, say => say).
(w)
| 156 | return w |
| 157 | |
| 158 | def step_1c(w): |
| 159 | """ Step 1c replaces suffix -y or -Y by -i if preceded by a non-vowel |
| 160 | which is not the first letter of the word (cry => cri, by => by, say => say). |
| 161 | """ |
| 162 | if len(w) > 2 and w.endswith(("y","Y")) and is_consonant(w[-2]): |
| 163 | return w[:-1] + "i" |
| 164 | return w |
| 165 | |
| 166 | suffixes2 = [ |
| 167 | ("al", (("ational", "ate"), ("tional", "tion"))), |
nothing calls this directly
no test coverage detected
searching dependent graphs…