Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swedish: Remove -et or -en when stem ends in et #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions algorithms/swedish.sbl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
routines (
mark_regions
R1
main_suffix
consonant_pair
other_suffix
Expand Down Expand Up @@ -33,6 +34,8 @@ define mark_regions as (

backwardmode (

define R1 as $p1 <= cursor

define main_suffix as (
setlimit tomark p1 for ([substring])
among(
Expand Down Expand Up @@ -66,6 +69,7 @@ define stem as (
do mark_regions
backwards (
do main_suffix
do ( ['et' or 'en' R1 ] 'et' delete )
do consonant_pair
do other_suffix
)
Expand Down