While searching for the word lay, I noticed that there are no results, though I had a lot of layout words in my documents.
When debugging, I noticed that lay was transformed into lai, due to step 1c from the Porter2 algorithm.
When reviewing step 1c, I noticed that we should only convert the y to i in words containing non-vowels before y, so lay should have stayed lay after this step.
This PR contains the correct implementation of step 1c. I've also added two test fixtures.
While searching for the word
lay
, I noticed that there are no results, though I had a lot oflayout
words in my documents.When debugging, I noticed that
lay
was transformed intolai
, due to step 1c from the Porter2 algorithm.When reviewing step 1c, I noticed that we should only convert the
y
toi
in words containing non-vowels beforey
, solay
should have stayedlay
after this step.This PR contains the correct implementation of step 1c. I've also added two test fixtures.