Commit 680973ca authored by Linda Freienthal's avatar Linda Freienthal
Browse files

refresh estonian snowball 1.2

parent 873820a2
No preview for this file type
See http://snowballstem.org/ for more details.
Here's Snowball for Estonian version 1.0.
Here's Snowball for Estonian version 1.2.
In order to test it:
......@@ -8,8 +8,6 @@ put words you want to test into the file 'voc.txt' one word per line
run ' ./testest.sh'
Ignore the error messages :)
the result appears in file 'TEMP-txt'
This contains the source code for the snowball compiler and has been edited by Linda.
......
......@@ -25,7 +25,7 @@ masinavärk
läksidki
hüpa
asdari
kirjutata
kirjuta
hüpa
rita
......
This diff is collapsed.
......@@ -29,14 +29,13 @@ stringdef u" hex 'FC' //u-umlaut ü
externals ( stem )
booleans ( is_verb )
integers ( p1 )
groupings ( V1 RV KI GI alphabet)
groupings ( V1 RV KI GI)
stringescapes {}
define V1 'aeiou{o'}{a"}{o"}{u"}'
define RV 'aeiuo'
define alphabet 'bcdfghjklmnpqrstvwxšzž' + V1
define KI 'kptgbdshfšzž'
define GI alphabet - KI
define GI 'cjlmnqrvwxaeiou{o'}{a"}{o"}{u"}'
define mark_regions as (
$p1 = limit
......@@ -50,7 +49,7 @@ backwardmode (
define emphasis as (
setlimit tomark p1 for ([substring])
test hop 4 //kingi -> kingi
among( //not 'in'?
among(
'gi' ((GI and not LONGV) delete) //jooksemegi -> jookseme, bioloogi -> bioloogi
'ki' ('är' <-'k' or KI delete) //kookki -> kook, masinavärki -> masinavärk
)
......@@ -230,7 +229,7 @@ define verb_exceptions as (
'n{a"}eksin' 'n{a"}eks' 'n{a"}eksid' 'n{a"}eksime' 'n{a"}eksite' (<-'n{a"}gi')
//'n{a"}gin' 'n{a"}gid' 'n{a"}gi' 'n{a"}gime' 'n{a"}gite'
'n{a"}hakse' 'n{a"}hti' 'n{a"}ha' 'n{a"}gema' 'n{a"}gemata' (<-'n{a"}gi')
//lugema-tüüpi (ÕS 57. tüüp) kuulub ligi 20 /2 I V/-sõna, mille esimese ja teise silbi piiril on lühike klusiil, nagu püga/ma, sada/ma, põde/ma, ladu/ma, kudu/ma. Nee
//lugema-tüüpi (ÕS 57. tüüp) kuulub ligi 20 /2 I V/-sõna, mille esimese ja teise silbi piiril on lühike klusiil, nagu püga/ma, sada/ma, põde/ma, ladu/ma, kudu/ma.
)
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment