Tornedalen Finnish NLP Grammar

Finite state and Constraint Grammar based analysers, proofing tools and other resources

View the project on GitHub giellalt/lang-fit

Meänkieli twolc file

This file documents the Meänkieli twolc file (the file governing gradation, gemination, vowel harmony and other morphophonological processes).

The first part of the file contains definitions, the second part contains rules.

Declaring the alphabet, sets and definitions

Alphabet

This defines all symbols (letters, archiphonemes, triggers) to be used.

Sets

Here we group the symbols in convenient sets.

Definitions

This defines strings used often in rules.

WeakGrade = ([l|n|r]) (%^AE:) %^WG:

Rules

This chapter gives the rules themselves.

Consonant rules

For the gradation rules, each consonant deletion or change is given its own rule. Thus, both kk:k and k:0 are handled in the same *k:0 rule. This to avoid rule conflicts. The change rules (k:g, k:j etc.) are restricted by context (k:g only after n, etc.).

f rules

RULE: f:0

j rules

RULE: j:0

k rules

RULE: k:g

Tests:

RULE: k:0

Tests:

RULE: k:j

RULE: k4:j

Tests:

RULE: k:v

Tests:

l rules

RULE: k:v

m rules

RULE: m:0

n rules

RULE: n:0

p rules

RULE: p:0

Tests:

RULE: p:v

Tests:

RULE: p:m

r rules

RULE: p:m

s rules

RULE: r:0

t rules

RULE: t:0

Tests:

RULE: t4:0 where t4 is t in rt that shall not become rr

Tests:

RULE: t:j

Tests:

**RULE: t:l ** for lt:ll

Tests:

**RULE: t:n ** for nt:nn

Tests:

**RULE: t:r ** for rt:rr

Tests:

RULE: t:s

Tests:

v rules

RULE: v:0

Gemination rules

The gemination rules insert the geminated consonant (thus 0:h if h to the left). There is one subrule for each vowel context, in order to avoid confilcts.

RULE: Gemination 0:h

RULE: Gemination 0:j

RULE: Gemination 0:k

Tests:

RULE: Gemination 0:l

Tests:

RULE: Gemination 0:m

RULE: Gemination 0:n

RULE: Gemination 0:p

RULE: Gemination 0:s

Tests:

RULE: h:0

RULE: h:0

RULE: h:0

kasva>hm^A^An kasva>mhaan

saarna>^A>hm^A^An saarna>a>hmaan

tule>hm^A^An tule>mhaan

RULE: Gemination 0:t

Tests:

RULE: Gemination 0:v Tests:

Assimilation rules

These are assimilation rules for n on suffix borders of LNRS consonant stems. There is also a rule j:0 avoiding a lji sequence.

RULE: Alveolar assimilation for consonant stem l

Tests:

RULE: Alveolar assimilation for consonant stem r

RULE: Alveolar assimilation for consonant stem s in infinitives Tests:

RULE: Alveolar assimilation for consonant stem s in participles

Vowel change rules: a - ä - e - i - o - ö - u - y

Here come the rules for stem vowel changes in front of suffix -i- (be it plural, present, comparative or conditional). Vowels are deleted or changed according to context. There are also some other vowel change rules.

a rules

RULE: a:e before the ^AE trigger

RULE: a:0 before metathesis h

Tests:

RULE: a:o when nonrounded root vowel and before i

Tests:

ä rules

RULE: ä:0

Tests:

RULE: ä:e

e rules

RULE: e:0 deletes -e- in LNR stems as well as before -i-

Tests:

RULE: e:i

Tests:

i rules

RULE: i:0

Tests:

RULE: i:j

RULE: i2:j

RULE: i8:0

Tests:

RULE: i:e

o rules

RULE: o:0

Tests:

ö rules

RULE: ö:0

Tests:

u rules

RULE: u:0

Tests:

y rules

RULE: y:0

Tests:

Vowel copying rules

These are the rules connected to the Meänkieli -h- suffixes. The vowel must be copied from the stem to the right of the h and also deleted in the stem (cf. talo : talhoon)

RULE: a copying for h metathesis

Tests:

RULE: o copying for h metathesis

Tests:

RULE: i copying for h metathesis

Tests:

RULE: ä copying for h metathesis

RULE: e copying for h metathesis

RULE: ö copying for h metathesis

RULE: y copying for h metathesis

RULE: u copying for h metathesis

Vowel harmony rule

All vowel harmony is taken care of with one rule.

RULE: Back harmony

Tests:


This (part of) documentation was generated from src/fst/morphology/phonology.twolc