From f49b9815642c45912ca8a376a605243a52dfe9eb Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 11 Oct 2024 15:25:10 +1300 Subject: [PATCH] Update for German -erin, -erinnen change See https://github.com/snowballstem/snowball/issues/85 See https://github.com/snowballstem/snowball/issues/161 --- algorithms/german/stemmer.tt | 6 ++++-- code/german.sbl | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/algorithms/german/stemmer.tt b/algorithms/german/stemmer.tt index d65ae18..f31588a 100644 --- a/algorithms/german/stemmer.tt +++ b/algorithms/german/stemmer.tt @@ -79,10 +79,12 @@ Step 1: (b) ern   er
(c) e   en   es
(d) s (preceded by a valid s-ending)
- (e) ln   lns [added in Snowball 2.3.0] + (e) erin   erinnen [added in Snowball 2.3.0]
+ (f) ln   lns [added in Snowball 2.3.0]

- and if in R1 then delete (for (a) to (d)) or replace with l (for (e)). (Of course the letter of the valid s-ending is + and if in R1 then delete (for (a) to (e)) or replace with l (for (f)). + (Of course the letter of the valid s-ending is not necessarily in R1.) If an ending of group (c) is deleted, and the ending is preceded by niss, delete the final s.

diff --git a/code/german.sbl b/code/german.sbl index da55595..c0973c7 100644 --- a/code/german.sbl +++ b/code/german.sbl @@ -89,6 +89,7 @@ backwardmode ( delete ) 'ern' 'er' + 'erin' 'erinnen' // conflate female versions of nouns ( delete ) 'e' 'en' 'es'