Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9752ceb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Nov 9, 2023
1 parent 33d68dc commit 94fdb17
Show file tree
Hide file tree
Showing 2 changed files with 508 additions and 531 deletions.
15 changes: 10 additions & 5 deletions algorithms/german/stemmer.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,14 @@ <h2>The stemming algorithm</h2>
<DL><DD>
Search for the longest among the following suffixes,
<DL><DD>
(<I>a</I>) <B><I>em &nbsp; ern &nbsp; er</I></B><BR>
(<I>b</I>) <B><I>e &nbsp; en &nbsp; es</I></B><BR>
(<I>c</I>) <B><I>s</I></B> (preceded by a valid <B><I>s</I></B>-ending)
(<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)
</DL>
<p>
and delete if in <I>R</I>1. (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>b</I>) is deleted, and the ending
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 Expand Up @@ -468,7 +469,11 @@ <h2>The same algorithm in Snowball</h2>
<span class="w"> </span><span class="kr">define</span><span class="w"> </span><span class="n">standard_suffix</span><span class="w"> </span><span class="kr">as</span><span class="w"> </span><span class="p">(</span><span class="w"></span>
<span class="w"> </span><span class="ow">do</span><span class="w"> </span><span class="p">(</span><span class="w"></span>
<span class="w"> </span><span class="o">[</span><span class="ow">substring</span><span class="o">]</span><span class="w"> </span><span class="n">R1</span><span class="w"> </span><span class="kr">among</span><span class="p">(</span><span class="w"></span>
<span class="w"> </span><span class="s1">&#39;em&#39;</span><span class="w"> </span><span class="s1">&#39;ern&#39;</span><span class="w"> </span><span class="s1">&#39;er&#39;</span><span class="w"></span>
<span class="w"> </span><span class="s1">&#39;em&#39;</span><span class="w"></span>
<span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="ow">not</span><span class="w"> </span><span class="s1">&#39;syst&#39;</span><span class="w"></span>
<span class="w"> </span><span class="ow">delete</span><span class="w"></span>
<span class="w"> </span><span class="p">)</span><span class="w"></span>
<span class="w"> </span><span class="s1">&#39;ern&#39;</span><span class="w"> </span><span class="s1">&#39;er&#39;</span><span class="w"></span>
<span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="ow">delete</span><span class="w"></span>
<span class="w"> </span><span class="p">)</span><span class="w"></span>
<span class="w"> </span><span class="s1">&#39;e&#39;</span><span class="w"> </span><span class="s1">&#39;en&#39;</span><span class="w"> </span><span class="s1">&#39;es&#39;</span><span class="w"></span>
Expand Down
Loading

0 comments on commit 94fdb17

Please sign in to comment.