Skip to content

Commit

Permalink
Update with German stemmer -ln change
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Oct 10, 2024
1 parent 198a2fc commit 78d4ca8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions algorithms/german/stemmer.tt
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ Step 1:
(<I>a</I>) <B><I>em</I></B> (not preceded by <B><I>syst</I></B> [condition added in Snowball 2.3.0])<BR>
(<I>b</I>) <B><I>ern &nbsp; er</I></B><BR>
(<I>c</I>) <B><I>e &nbsp; en &nbsp; es</I></B><BR>
(<I>d</I>) <B><I>s</I></B> (preceded by a valid <B><I>s</I></B>-ending)
(<I>d</I>) <B><I>s</I></B> (preceded by a valid <B><I>s</I></B>-ending)<BR>
(<I>e</I>) <B><I>ln &nbsp; lns</I></B> [added in Snowball 2.3.0]
</DL>
<p>
and delete if in <I>R</I>1. (Of course the letter of the valid <B><I>s</I></B>-ending is
and if in <I>R</I>1 then delete (for (a) to (d)) or replace with <I>l</I> (for (e)). (Of course the letter of the valid <B><I>s</I></B>-ending is
not necessarily in <I>R</I>1.) If an ending of group (<I>c</I>) is deleted, and the ending
is preceded by <B><I>niss</I></B>, delete the final <B><I>s</I></B>.
</p>
Expand Down
5 changes: 4 additions & 1 deletion code/german.sbl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ backwardmode (
do (
[substring] R1 among(
'em'
( not 'syst'
( not 'syst' // don't remove -em from words ending -system
delete
)
'ern' 'er'
Expand All @@ -98,6 +98,9 @@ backwardmode (
's'
( s_ending delete
)
'ln' 'lns'
( <- 'l'
)
)
)
do (
Expand Down

0 comments on commit 78d4ca8

Please sign in to comment.