Ingrian NLP Grammar

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

View the project on GitHub giellalt/lang-izh

Ingrian language model documentation

All doc-comment documentation in one large file.


src-cg3-functions.cg3.md

These sets model noun phrases (NPs). The idea is to first define whatever can occur in front of the head of the NP, and thereafter negate that with the expression WORD - premodifiers.

The set NOT-NPMOD is used to find barriers between NPs. Typical usage: … (*1 N BARRIER NPT-NPMOD) … meaning: Scan to the first noun, ignoring anything that can be part of the noun phrase of that noun (i.e., “scan to the next NP head”)

These were the set types.

HABITIVE MAPPING

sma object

SUBJ MAPPING - leftovers

OBJ MAPPING - leftovers

HNOUN MAPPING


This (part of) documentation was generated from src/cg3/functions.cg3


src-fst-morphology-affixes-adjectives.lexc.md

Adjective inflection

The INGRIAN language adjectives compare.


This (part of) documentation was generated from src/fst/morphology/affixes/adjectives.lexc


src-fst-morphology-affixes-adpositions.lexc.md

Adposition tags

Here we just add tags +Po and +Prep to the Ingrian pre- and postpositions.


This (part of) documentation was generated from src/fst/morphology/affixes/adpositions.lexc


src-fst-morphology-affixes-adverbs.lexc.md

Adverb inflection

Ingrian adjectives compare.


This (part of) documentation was generated from src/fst/morphology/affixes/adverbs.lexc


src-fst-morphology-affixes-clitics.lexc.md

Clitics

Ingrian clitics are stored in the affixes folder. We tag question and focus particles.


This (part of) documentation was generated from src/fst/morphology/affixes/clitics.lexc


src-fst-morphology-affixes-nouns.lexc.md

Ingrian noun inflection

This file documents affixes/nouns.lexc

This file documents the suffixes for noun inflection.

LEXICON N_YÖ-SG

LEXICON N_YÖ-SG_01

LEXICON N_MAA

LEXICON N_MAA_01

LEXICON N_PREESENS preesens:preesens

LEXICON N_PREESENS_01

LEXICON N_GLASNOI

LEXICON N_RISTI

LEXICON N-risti_01

LEXICON N_MATO mato (II)

LEXICON N-mato_01

LEXICON N_KOIVU koivu

LEXICON N_OSA forma osa (II-b)

LEXICON N-osa_01

LEXICON N_JOKI joki:jok joki (II-c)

LEXICON N-joki_01

LEXICON N_LUMI lumi (II-d)

LEXICON N-lumi_01

LEXICON N_EMOI emoi (III)

LEXICON N-emoi_01

LEXICON N_JALKA the stem-final “a” is added here. jalka (IV)

LEXICON N-jalka_01

LEXICON N_KANA

LEXICON N-kana_01

Three-syllable words

LEXICON N_MONIKKO

LEXICON N_TYTÄR tytär:tyttä

LEXICON N-tytär_01

LEXICON N_PATSAS patsas:patsa

LEXICON N-patsas_01

LEXICON N_LÄHE lähe:lähte

LEXICON N-lähe_01

LEXICON N_SLOVARI from mato (II-e)

LEXICON N-slovari_01

LEXICON N_NUMERO numero:numero

LEXICON N-numero_01

LEXICON N_VOKALA the stem-final “a” is added here vokala (IV-b)

LEXICON N-vokala_01

LEXICON N_HARAKKA harakka:harakk This should operate using principles of ommeena

LEXICON N-harakka_01

LEXICON N_OMMEENA ommeena:omena

LEXICON N_PUTTEELI putteeli:puteli

LEXICON N-putteeli_01

LEXICON N_LEIKKUU leikkuu, kiukkaa, lämmää (VI)

LEXICON N-leikkuu_01

LEXICON N_ASSIA assia:assi (VII)

LEXICON N-assia_01

LEXICON N-assia_01-Sg

LEXICON N_PESÄ VCV

LEXICON N-pesä_01

LEXICON N_TÄHKÄ VCCV, tähkä (VIII)

LEXICON N-tähkä_01

LEXICON N_TAEHTI tähti (IX)

LEXICON NMN_TAEHTI_01

LEXICON N_VARSI

LEXICON N_VOOSI voosi:voo

LEXICON N_MEES mees:mee (??)

LEXICON N-mees_01

LEXICON N_VARIS varis (XII)

LEXICON N_KEELI keeli (IX-b)

LEXICON N-keeli_01

LEXICON N_SAMMAL

LEXICON N-sammal_01

LEXICON N_VENÄT kevät (XX-a)

LEXICON N-venät_01

LEXICON N-venät_01-Sg

LEXICON N_PÄIVYT päivyt:päivy

LEXICON N-päivyt_01

DERIVATION

One derivational process only, DER-t0in.

LEXICON DER-tOin

DECLENSION

LEXICON Cases

LEXICON lOi-Pl

LEXICON Oblique-Plural_blank

LEXICON Oblique-Plural_sse

LEXICON Oblique-Plural_V

LEXICON Oblique-Plural_hV

LEXICON Oblique-Plural

LEXICON Oblique-Plural_less-EssExe

LEXICON Oblique-Singular

LEXICON Oblique-Singular_less-EssExe

PLURAL TAGS

Plural tags separated from singular ones.

LEXICON PL-ABE

LEXICON PL-ABL

LEXICON PL-ABL_Px

LEXICON PL-ADE

LEXICON PL-ALL

LEXICON PL-COM +Dial/Lauk

LEXICON PL-ELA

LEXICON PL-ESS_Vn +Dial/Soik

LEXICON PL-ESS_n

LEXICON PL-ESS_nnA +Dial/Lauk

LEXICON PL-EXE

LEXICON PL-GEN

LEXICON PL-ILL_blank

LEXICON PL-ILL_sse

LEXICON PL-ILL_V

LEXICON PL-ILL_hV

LEXICON PL-INE

LEXICON PL-NOM

LEXICON PL-PAR_A

LEXICON PL-PAR_A-LCns

LEXICON PL-PAR_tA

LEXICON PL-PRL

LEXICON PL-TRA @

LEXICON SG-ABE

LEXICON SG-ABL

LEXICON SG-ADE

LEXICON SG-ALL

LEXICON SG-COM

LEXICON SG-ELA

LEXICON SG-ESS_Vn

LEXICON SG-ESS_nnA

LEXICON SG-EXE

LEXICON SG-GEN

LEXICON SG-ILL_sse

LEXICON SG-ILL_V

LEXICON SG-ILL_hV

LEXICON SG-INE

LEXICON SG-NOM

LEXICON SG-PAR_A

LEXICON SG-PAR_tA

LEXICON SG-TRA


This (part of) documentation was generated from src/fst/morphology/affixes/nouns.lexc


src-fst-morphology-affixes-numerals.lexc.md

Quantifier inflection

Still undocumented

N-kärpäin (XIII)

N-kärpäin (XIII)

N-mato (II)

vähä:vähä

enemmän

kaik:kaik


This (part of) documentation was generated from src/fst/morphology/affixes/numerals.lexc


src-fst-morphology-affixes-particles.lexc.md

Particles inflection

Ingrian particles …


This (part of) documentation was generated from src/fst/morphology/affixes/particles.lexc


src-fst-morphology-affixes-pronouns.lexc.md

Pronoun inflection

Ingrian pronouns inflect in cases.


This (part of) documentation was generated from src/fst/morphology/affixes/pronouns.lexc


src-fst-morphology-affixes-propernouns.lexc.md

Proper noun inflection

We have a partial program in singular.


This (part of) documentation was generated from src/fst/morphology/affixes/propernouns.lexc


src-fst-morphology-affixes-symbols.lexc.md

Symbol affixes


This (part of) documentation was generated from src/fst/morphology/affixes/symbols.lexc


src-fst-morphology-affixes-verbs.lexc.md

Verb inflection

Irregular verbs

oon

Regular verbs

tiitämätöin tiitää

näyttännöö

näyttävä näyttänt näyttämätöin näyttää näyttämää

3-syllable

kiirehtiä:kiireh

DERIVATION

PARTICIPLES

CONJUGATION

INDICATIVE PRETERITE

CONDITIONAL

POTENTIAL

:n, :s, :l, :r, :n


This (part of) documentation was generated from src/fst/morphology/affixes/verbs.lexc


src-fst-morphology-phonology.twolc.md

The Ingrian morphophonological/twolc rules file

This file documents the phonology.twolc file

Alphabet

The letters

Vowel harmony with “(t)a/ä”

Vowel harmony with “loi/löi” also kalatOÖ1in

Vowel harmony with “ttu/tty”

this appears in the illative

These appear with the inessive and adessive

These reduplicate the preceding vowel if it in turn is preceded by a consonant

this k is not effected by gradation

this weakens the stem ompel to ommel

The ti => si

Vowel raising

Sets

Definitions

Right context for gradation

Rules

**RULE: StemVowLoss **

**RULE: StemALoss **

**RULE: StemAÄLoss **

RULE: StemULoss

RULE: i:Zero

RULE: i:j

RULE: a:e

RULE: ä:e

RULE: AÄ1:ä

RULE: AÄ1:a

RULE: OÖ1:ö

RULE: OÖ1:o

RULE: UY1:y

RULE: UY1:u

RULE: V1:aeouüäö

RULE: V1:e

RULE: V1:i

RULE: V2:aeiouüäö

RULE: V2:Zero

This deals with secondary or perhaps pertary vowel lengthening RULE: V3:a

RULE: V3:e

RULE: V3:i

RULE: V3:o

RULE: V3:u

RULE: V3:ä

RULE: V3:ö

RULE: V3:y

RULE: V3:Zero

RULE: V3:Zero

RULE: consonant lengthening RULE: j lengthening

Consonant weakening

RULE: Ut:vv Uk:vv weakening

RULE: 0:v Lengthening with Ut:vv weakening

RULE: it:j

RULE: st:ss weakening

RULE: rt:rr weakening

RULE: lt:ll weakening

RULE: nt:nn weakening

p

RULE: mp:mm weakening

RULE: nk:ng weakening

RULE: kToZero

RULE: kToj

RULE: Double stop:weakens tToZero

RULE: p:v

RULE: double pp to p

Vowel raising RULE: o:u ö:y in Inf


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


src-fst-morphology-root.lexc.md

Ingrian multichar symbols and Root lexicon

Definitions for Multichar_Symbols

Multichar_Symbols

The morphological analyses of wordforms for the Ingrian language are presented in this system in terms of the following symbols. (It is highly suggested to follow existing standards when adding new tags).

The parts-of-speech tags:

+N +A +Adv +V +Pron +CS +CC +Adp +Po +Pr +Interj +Pcle +Num +Qnt

The parts of speech subtags

+Prop Types of nouns +Pers +Dem +Interr +Refl +Recipr +Rel +Indef Types of pronouns +Manner +Spat +Temp = Types of adverbs +Err/Orth error forms +Use/-Spell do not suggest +Err/OverG Marks Overgeneration of case formatives, such as, exessive with personal pronouns +Dial/Soik Dialects tag. Peculiar to Soikkola +Dial/Lauk Dialect tag. Peculiar to Laukaa

Nominal inflection

+Sg +Pl +Ess +Nom +Gen +Acc +Ill +Ine +Ela +All +Ade +Abl +Tra +Par +Exe +Instr +Com +Ins +Prl +PxSg1 +PxSg2 +PxSg3 +PxPl1 +PxPl2 +PxPl3 Possessive suffixes +Comp +Superl comparative tags

Numerals and other quantifier tags

+Attr +Card +Ord ordinal +Univ universal quantifier

Verb tags

+Ind +Prs +Prt +Pot +Cond +Imprt moods +Sg1 +Sg2 +Sg3 +Pl1 +Pl2 +Pl3 Verb person tags +Inf +Ger +ConNeg +ConNegII +Neg +ImprtII +ActPrsPrc +ActPrtPrc +Prc +PrtPrc +Sup +VGen +VAbess +PrfPrc Which one is needed? +TV +IV transitivity:

Miscellanious tags

+ABBR +ACR +Symbol = independent symbols in the text stream, like £, €, © +CLB +PUNCT +LEFT +RIGHT Special symbols +Multi Non-dictionary words can be recognised with: Special multiword units +Guess Non-dictionary words via regex gring stems (not in use?) +Qst yes/no question +Foc focus +Foc/kä +Foc/kii +Clt/kAA

Symbols that need to be escaped on the lower side (towards twolc):

Semantic tags

Semantic tags to help disambiguation & synt. analysis: (before POS) Borrowed from main/langs/sme/src/morphology/root.lexc

Multiple Semantic tags:

Semantics are classified with

Derivation

Derivations are classified under the morphophonetic form of the suffix, the source and target part-of-speech.

+V→N +V→V +V→A +Der/jA = actor name !!2012-10-30 +Der/Adj = for derivation of adjectives without specification +Der/st = for derivation of manner adverbs +Der/min = Deverbal nouns +Der/miin = Deverbal nouns +Der/tOin = Deverbal arvaamaton and Denominal adjectives +Der/toist = ykstoist (11), kakstoist (12)

Morphophonology

To represent phonologic variations in word forms we use the following symbols in the lexicon files:

Archiphonemes

{aä} {oö} {uü} %> V1 V2 V3 AÄ1 OÖ1 UY1 %^E1 %^TS K1 %^NoGrad Nogradation

Triggers to control variation

{front} {back} %^ShVws %^LVws %^ShCns %^LCns %^WCns %^StrCns %^AtoO %^ÄtoÖ %^OddSyll arvata, arvant but arvanneet %^StretchSyll2 creates ommeena from omena %^SyllBr syllable break for venät and lyhyt %^RVws %^WGStem weak-grade stem for ompel to ommel

Flag diacritics

We have manually optimised the structure of our lexicon using following flag diacritics to restrict morhpological combinatorics - only allow compounds with verbs if the verb is further derived into a noun again:

Flag Explanation
@P.NeedNoun.ON@ (Dis)allow compounds with verbs unless nominalised
@D.NeedNoun.ON@ (Dis)allow compounds with verbs unless nominalised
@C.NeedNoun@ (Dis)allow compounds with verbs unless nominalised

For languages that allow compounding, the following flag diacritics are needed to control position-based compounding restrictions for nominals. Their use is handled automatically if combined with +CmpN/xxx tags. If not used, they will do no harm.

Flag Explanation
@P.CmpFrst.FALSE@ Require that words tagged as such only appear first
@D.CmpPref.TRUE@ Block such words from entering ENDLEX
@P.CmpPref.FALSE@ Block these words from making further compounds
@D.CmpLast.TRUE@ Block such words from entering R
@D.CmpNone.TRUE@ Combines with the next tag to prohibit compounding
@U.CmpNone.FALSE@ Combines with the prev tag to prohibit compounding
@P.CmpOnly.TRUE@ Sets a flag to indicate that the word has passed R
@D.CmpOnly.FALSE@ Disallow words coming directly from root.

Use the following flag diacritics to control downcasing of derived proper nouns (e.g. Finnish Pariisi -> pariisilainen). See e.g. North Sámi for how to use these flags. There exists a ready-made regex that will do the actual down-casing given the proper use of these flags.

Flag Explanation
@U.Cap.Obl@ Allowing downcasing of derived names: deatnulasj.
@U.Cap.Opt@ Allowing downcasing of derived names: deatnulasj.

This is to facilitate the ‘teens’ in “-toist” This can also be used as a condition for further combinations e.g. tens and hundreds

Flag Explanation
@U.CARD.TOIST@  
@R.CARD.TOIST@  
@C.CARD@  

Part of speech

Flag Explanation
@U.POS.N@  
@R.POS.N@  
@U.POS.NUM@  
@R.POS.NUM@  
@C.POS@  

FLAGS USED WITH COLLECTIVE NOUNS

Flag Explanation
@U.DECL-NX.SG@ unify number
@U.DECL-NX.PL@ unify number
@R.DECL-NX.PL@ reset number
@U.DECL-CX.ABE@ unify case for collective noun
@U.DECL-CX.ABL@ unify case for collective noun
@U.DECL-CX.ACC@ unify case for collective noun
@U.DECL-CX.ADE@ unify case for collective noun
@U.DECL-CX.ALL@ unify case for collective noun
@U.DECL-CX.COM@ unify case for collective noun
@U.DECL-CX.ELA@ unify case for collective noun
@U.DECL-CX.ESS@ unify case for collective noun
@U.DECL-CX.EXE@ unify case for collective noun
@U.DECL-CX.GEN@ unify case for collective noun
@U.DECL-CX.ILL@ unify case for collective noun
@U.DECL-CX.INE@ unify case for collective noun
@U.DECL-CX.INS@ unify case for collective noun
@U.DECL-CX.NOM@ unify case for collective noun
@U.DECL-CX.PAR@ unify case for collective noun
@U.DECL-CX.PRL@ unify case for collective noun
@U.DECL-CX.TRA@ unify case for collective noun
@U.COMPLETE.YES@  
@D.COMPLETE.YES@  
@C.DECL-CX@  
@C.DECL-NX@  
@C.COMPLETE@  

Root lexicon

Root The word forms start from the lexeme roots of basic word classes, or optionally from prefixes:

POS with minimal morphological variation

CC_

CS_

AbbrDot

INTERJ_


This (part of) documentation was generated from src/fst/morphology/root.lexc


src-fst-morphology-stems-acronyms.lexc.md

Acronyms Veps acronyms …


This (part of) documentation was generated from src/fst/morphology/stems/acronyms.lexc


src-fst-morphology-stems-exceptions.lexc.md

lyhyt ensimmäinen tavu

pitkä ensimmäinen tavu


This (part of) documentation was generated from src/fst/morphology/stems/exceptions.lexc


src-fst-phonetics-txt2ipa.xfscript.md

retroflex plosive, voiceless t ʈ 0288, 648 ( = ASCII 096) retroflex plosive, voiced d ɖ 0256, 598 labiodental nasal F ɱ 0271, 625 retroflex nasal n ɳ 0273, 627 palatal nasal J ɲ 0272, 626 velar nasal N ŋ 014B, 331 uvular nasal N\ ɴ 0274, 628

bilabial trill B\ ʙ 0299, 665 uvular trill R\ ʀ 0280, 640 alveolar tap 4 ɾ 027E, 638 retroflex flap r ɽ 027D, 637 bilabial fricative, voiceless p\ ɸ 0278, 632 bilabial fricative, voiced B β 03B2, 946 dental fricative, voiceless T θ 03B8, 952 dental fricative, voiced D ð 00F0, 240 postalveolar fricative, voiceless S ʃ 0283, 643 postalveolar fricative, voiced Z ʒ 0292, 658 retroflex fricative, voiceless s ʂ 0282, 642 retroflex fricative, voiced z` ʐ 0290, 656 palatal fricative, voiceless C ç 00E7, 231 palatal fricative, voiced j\ ʝ 029D, 669 velar fricative, voiced G ɣ 0263, 611 uvular fricative, voiceless X χ 03C7, 967 uvular fricative, voiced R ʁ 0281, 641 pharyngeal fricative, voiceless X\ ħ 0127, 295 pharyngeal fricative, voiced ?\ ʕ 0295, 661 glottal fricative, voiced h\ ɦ 0266, 614

alveolar lateral fricative, vl. K alveolar lateral fricative, vd. K\

labiodental approximant P (or v) alveolar approximant r\ retroflex approximant r` velar approximant M\

retroflex lateral approximant l` palatal lateral approximant L velar lateral approximant L
Clicks

bilabial O\ (O = capital letter) dental |
(post)alveolar !\ palatoalveolar =\ alveolar lateral ||
Ejectives, implosives

ejective > e.g. ejective p p> implosive < e.g. implosive b b< Vowels

close back unrounded M close central unrounded 1 close central rounded } lax i I lax y Y lax u U

close-mid front rounded 2 close-mid central unrounded @\ close-mid central rounded 8 close-mid back unrounded 7

schwa ə @

open-mid front unrounded E open-mid front rounded 9 open-mid central unrounded 3 open-mid central rounded 3\ open-mid back unrounded V open-mid back rounded O

ash (ae digraph) { open schwa (turned a) 6

open front rounded & open back unrounded A open back rounded Q Other symbols

voiceless labial-velar fricative W voiced labial-palatal approx. H voiceless epiglottal fricative H\ voiced epiglottal fricative <\ epiglottal plosive >\

alveolo-palatal fricative, vl. s\ alveolo-palatal fricative, voiced z\ alveolar lateral flap l\ simultaneous S and x x\ tie bar _ Suprasegmentals

primary stress “ secondary stress % long : half-long :\ extra-short _X linking mark -
Tones and word accents

level extra high _T level high _H level mid _M level low _L level extra low _B downstep ! upstep ^ (caret, circumflex)

contour, rising contour, falling _F contour, high rising _H_T contour, low rising _B_L

contour, rising-falling _R_F (NB Instead of being written as diacritics with _, all prosodic marks can alternatively be placed in a separate tier, set off by < >, as recommended for the next two symbols.) global rise global fall Diacritics

voiceless 0 (0 = figure), e.g. n_0 voiced _v aspirated _h more rounded _O (O = letter) less rounded _c advanced _+ retracted _- centralized _” syllabic = (or _=) e.g. n= (or n=) non-syllabic _^ rhoticity `

breathy voiced _t creaky voiced _k linguolabial _N labialized _w palatalized ‘ (or _j) e.g. t’ (or t_j) velarized _G pharyngealized _?\

dental d apical _a laminal _m nasalized ~ (or _~) e.g. A~ (or A~) nasal release _n lateral release _l no audible release _}

velarized or pharyngealized _e velarized l, alternatively 5 raised _r lowered _o advanced tongue root _A retracted tongue root _q


This (part of) documentation was generated from src/fst/phonetics/txt2ipa.xfscript


src-fst-phonology-old.xfscript.md

two consonants XY ==> X

paikka : paikan tuhka : tuhan jalka : jalan verka : veran matka : matan

lappa : lapan

lampahaal : lammaz kelpajaa : kelvata varpahaal : varvaz

vika : vian

aika : aijjan reikä : reijjän

hauki : hauvven rooka : roovvan luku : luvvun

(4) ossaan : ozata suzi : suen (5) katto : katon vahti : vahin silta : sillan rakentaa : rakennan : rakenzin parta : parran vassaan : vasata

(6) pata : paan aita : aijjan viittä : viijjeel voitua : voijjun kaks vootta : kahen vuuvven

(7) vattsa : vatsan

*omena *omenaa  
=> ommeena omenaa  
lammaz lamppaahan lampahaal
define SoftLossBeforeVowel [ ‘ -> 0   _ QEQ1 %> ] ;

define StemFinalVowelLoss [ QAO1 -> 0 , QEQ1 -> 0 , QAQ1 -> 0 , QÄQ1 -> 0 || _ [ .#. | %- ] ] ; !€ marj>QAO1:marj

define VowelLossBeforePli [ QEQ1 -> 0 , QAQ1 -> 0 , QÄQ1 -> 0   _ %> i ] ;
define QAO [ QAO1 -> a , QAQ1 -> a   _ %> [ n d t a k s l h V1 n n o d m e s ] ,,
QAO1 -> o   _ %> i ] ;                
define QÄQ1 [ QÄQ1 -> ä , QEQ1 -> e   _ %> [ Cns VwsLessi ] ] ;

define D1E1 [ D1E1 -> d e || _ %> [ Cns | VwsLessi ] ] ; ! This should have voz’ > vodel

define S2SH [ s -> š   i %> _ ] ;

define VOICING [ t -> d , k -> g || [ Vws | n | l | r ] %> _ [ Vws ] ,, z -> s || Vws _ %> [ t | k ] ] ; ! in verb stems !€ sugi>ta:sugida !€ vali^DEVOICE>ta:valita

define DEVOICE [ %^DEVOICE -> 0   _ ] ;
define VowelStemVowelLoss [ e -> 0   _ %> i ( n d m t ) ] ;
define I1Variation [ I1 -> 0   Vws %- _ k ,, I1 -> i   Cns :0* %- _ k ] ;

This (part of) documentation was generated from src/fst/phonology-old.xfscript


src-fst-transcriptions-transcriptor-abbrevs2text.lexc.md

We describe here how abbreviations are in Ingrian are read out, e.g. for text-to-speech systems.

For example:


This (part of) documentation was generated from src/fst/transcriptions/transcriptor-abbrevs2text.lexc


src-fst-transcriptions-transcriptor-numbers-digit2text.lexc.md

% komma% :, Root ; % tjuohkkis% :%. Root ; % kolon% :%: Root ; % sárggis% :%- Root ; % násti% :%* Root ;


This (part of) documentation was generated from src/fst/transcriptions/transcriptor-numbers-digit2text.lexc


tools-grammarcheckers-grammarchecker.cg3.md

[ L A N G U A G E ] G R A M M A R C H E C K E R

DELIMITERS

TAGS AND SETS

Tags

This section lists all the tags inherited from the fst, and used as tags in the syntactic analysis. The next section, Sets, contains sets defined on the basis of the tags listed here, those set names are not visible in the output.

Beginning and end of sentence

BOS EOS

Parts of speech tags

N A Adv V Pron CS CC CC-CS Po Pr Pcle Num Interj ABBR ACR CLB LEFT RIGHT WEB PPUNCT PUNCT

COMMA ¶

Tags for POS sub-categories

Pers Dem Interr Indef Recipr Refl Rel Coll NomAg Prop Allegro Arab Romertall

Tags for morphosyntactic properties

Nom Acc Gen Ill Loc Com Ess Ess Sg Du Pl Cmp/SplitR Cmp/SgNom Cmp/SgGen Cmp/SgGen PxSg1 PxSg2 PxSg3 PxDu1 PxDu2 PxDu3 PxPl1 PxPl2 PxPl3 Px

Comp Superl Attr Ord Qst IV TV Prt Prs Ind Pot Cond Imprt ImprtII Sg1 Sg2 Sg3 Du1 Du2 Du3 Pl1 Pl2 Pl3 Inf ConNeg Neg PrfPrc VGen PrsPrc Ger Sup Actio VAbess

Err/Orth

Semantic tags

Sem/Act Sem/Ani Sem/Atr Sem/Body Sem/Clth Sem/Domain Sem/Feat-phys Sem/Fem Sem/Group Sem/Lang Sem/Mal Sem/Measr Sem/Money Sem/Obj Sem/Obj-el Sem/Org Sem/Perc-emo Sem/Plc Sem/Sign Sem/State-sick Sem/Sur Sem/Time Sem/Txt

HUMAN

PROP-ATTR PROP-SUR

TIME-N-SET

Syntactic tags

@+FAUXV @+FMAINV @-FAUXV @-FMAINV @-FSUBJ> @-F<OBJ @-FOBJ> @-FSPRED<OBJ @-F<ADVL @-FADVL> @-F<SPRED @-F<OPRED @-FSPRED> @-FOPRED> @>ADVL @ADVL< @<ADVL @ADVL> @ADVL @HAB> @<HAB @>N @Interj @N< @>A @P< @>P @HNOUN @INTERJ @>Num @Pron< @>Pron @Num< @OBJ @<OBJ @OBJ> @OPRED @<OPRED @OPRED> @PCLE @COMP-CS< @SPRED @<SPRED @SPRED> @SUBJ @<SUBJ @SUBJ> SUBJ SPRED OPRED @PPRED @APP @APP-N< @APP-Pron< @APP>Pron @APP-Num< @APP-ADVL< @VOC @CVP @CNP OBJ

-OTHERS SYN-V @X ## Sets containing sets of lists and tags This part of the file lists a large number of sets based partly upon the tags defined above, and partly upon lexemes drawn from the lexicon. See the sourcefile itself to inspect the sets, what follows here is an overview of the set types. ### Sets for Single-word sets INITIAL ### Sets for word or not WORD NOT-COMMA ### Case sets ADLVCASE CASE-AGREEMENT CASE NOT-NOM NOT-GEN NOT-ACC ### Verb sets NOT-V ### Sets for finiteness and mood REAL-NEG MOOD-V NOT-PRFPRC ### Sets for person SG1-V SG2-V SG3-V DU1-V DU2-V DU3-V PL1-V PL2-V PL3-V ### Pronoun sets ### Adjectival sets and their complements ### Adverbial sets and their complements ### Sets of elements with common syntactic behaviour ### NP sets defined according to their morphosyntactic features ### The PRE-NP-HEAD family of sets These sets model noun phrases (NPs). The idea is to first define whatever can occur in front of the head of the NP, and thereafter negate that with the expression **WORD - premodifiers**. ### Border sets and their complements ### Grammarchecker sets * * * This (part of) documentation was generated from [tools/grammarcheckers/grammarchecker.cg3](https://github.com/giellalt/lang-izh/blob/main/tools/grammarcheckers/grammarchecker.cg3) --- # tools-tokenisers-tokeniser-disamb-gt-desc.pmscript.md # Tokeniser for izh Usage: ``` $ make $ echo "ja, ja" | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst $ echo "Juos gorreválggain lea (dárbbašlaš) deavdit gáibádusa boasttu olmmoš, man mielde lahtuid." | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst $ echo "(gáfe) 'ja' ja 3. ja? ц jaja ukjend \"ukjend\"" | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst $ echo "márffibiillagáffe" | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst ``` Pmatch documentation: <https://github.com/hfst/hfst/wiki/HfstPmatch> Characters which have analyses in the lexicon, but can appear without spaces before/after, that is, with no context conditions, and adjacent to words: * Punct contains ASCII punctuation marks * The symbol after m-dash is soft-hyphen `U+00AD` * The symbol following {•} is byte-order-mark / zero-width no-break space `U+FEFF`. Whitespace contains ASCII white space and the List contains some unicode white space characters * En Quad U+2000 to Zero-Width Joiner U+200d' * Narrow No-Break Space U+202F * Medium Mathematical Space U+205F * Word joiner U+2060 Apart from what's in our morphology, there are 1. unknown word-like forms, and 2. unmatched strings We want to give 1) a match, but let 2) be treated specially by `hfst-tokenise -a` Unknowns are made of: * lower-case ASCII * upper-case ASCII * select extended latin symbols ASCII digits * select symbols * Combining diacritics as individual symbols, * various symbols from Private area (probably Microsoft), so far: * U+F0B7 for "x in box" ## Unknown handling Unknowns are tagged ?? and treated specially with `hfst-tokenise` hfst-tokenise --giella-cg will treat such empty analyses as unknowns, and remove empty analyses from other readings. Empty readings are also legal in CG, they get a default baseform equal to the wordform, but no tag to check, so it's safer to let hfst-tokenise handle them. Finally we mark as a token any sequence making up a: * known word in context * unknown (OOV) token in context * sequence of word and punctuation * URL in context * * * This (part of) documentation was generated from [tools/tokenisers/tokeniser-disamb-gt-desc.pmscript](https://github.com/giellalt/lang-izh/blob/main/tools/tokenisers/tokeniser-disamb-gt-desc.pmscript) --- # tools-tokenisers-tokeniser-gramcheck-gt-desc.pmscript.md # Grammar checker tokenisation for izh Requires a recent version of HFST (3.10.0 / git revision>=3aecdbc) Then just: ``` $ make $ echo "ja, ja" | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst ``` More usage examples: ``` $ echo "Juos gorreválggain lea (dárbbašlaš) deavdit gáibádusa boasttu olmmoš, man mielde lahtuid." | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst $ echo "(gáfe) 'ja' ja 3. ja? ц jaja ukjend \"ukjend\"" | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst $ echo "márffibiillagáffe" | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst ``` Pmatch documentation: <https://github.com/hfst/hfst/wiki/HfstPmatch> Characters which have analyses in the lexicon, but can appear without spaces before/after, that is, with no context conditions, and adjacent to words: * Punct contains ASCII punctuation marks * The symbol after m-dash is soft-hyphen `U+00AD` * The symbol following {•} is byte-order-mark / zero-width no-break space `U+FEFF`. Whitespace contains ASCII white space and the List contains some unicode white space characters * En Quad U+2000 to Zero-Width Joiner U+200d' * Narrow No-Break Space U+202F * Medium Mathematical Space U+205F * Word joiner U+2060 Apart from what's in our morphology, there are 1) unknown word-like forms, and 2) unmatched strings We want to give 1) a match, but let 2) be treated specially by hfst-tokenise -a * select extended latin symbols * select symbols * various symbols from Private area (probably Microsoft), so far: * U+F0B7 for "x in box" TODO: Could use something like this, but built-in's don't include šžđčŋ: Simply give an empty reading when something is unknown: hfst-tokenise --giella-cg will treat such empty analyses as unknowns, and remove empty analyses from other readings. Empty readings are also legal in CG, they get a default baseform equal to the wordform, but no tag to check, so it's safer to let hfst-tokenise handle them. Finally we mark as a token any sequence making up a: * known word in context * unknown (OOV) token in context * sequence of word and punctuation * URL in context * * * This (part of) documentation was generated from [tools/tokenisers/tokeniser-gramcheck-gt-desc.pmscript](https://github.com/giellalt/lang-izh/blob/main/tools/tokenisers/tokeniser-gramcheck-gt-desc.pmscript) --- # tools-tokenisers-tokeniser-tts-cggt-desc.pmscript.md # TTS tokenisation for smj Requires a recent version of HFST (3.10.0 / git revision>=3aecdbc) Then just: ```sh make echo "ja, ja" \ | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst ``` More usage examples: ```sh echo "Juos gorreválggain lea (dárbbašlaš) deavdit gáibádusa \ boasttu olmmoš, man mielde lahtuid." \ | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst echo "(gáfe) 'ja' ja 3. ja? ц jaja ukjend \"ukjend\"" \ | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst echo "márffibiillagáffe" \ | hfst-tokenise --giella-cg tokeniser-disamb-gt-desc.pmhfst ``` Pmatch documentation: <https://kitwiki.csc.fi/twiki/bin/view/KitWiki/HfstPmatch> Characters which have analyses in the lexicon, but can appear without spaces before/after, that is, with no context conditions, and adjacent to words: * Punct contains ASCII punctuation marks * The symbol after m-dash is soft-hyphen `U+00AD` * The symbol following {•} is byte-order-mark / zero-width no-break space `U+FEFF`. Whitespace contains ASCII white space and the List contains some unicode white space characters * En Quad U+2000 to Zero-Width Joiner U+200d' * Narrow No-Break Space U+202F * Medium Mathematical Space U+205F * Word joiner U+2060 Apart from what's in our morphology, there are 1) unknown word-like forms, and 2) unmatched strings We want to give 1) a match, but let 2) be treated specially by hfst-tokenise -a * select extended latin symbols * select symbols * various symbols from Private area (probably Microsoft), so far: * U+F0B7 for "x in box" TODO: Could use something like this, but built-in's don't include šžđčŋ: Simply give an empty reading when something is unknown: hfst-tokenise --giella-cg will treat such empty analyses as unknowns, and remove empty analyses from other readings. Empty readings are also legal in CG, they get a default baseform equal to the wordform, but no tag to check, so it's safer to let hfst-tokenise handle them. Needs hfst-tokenise to output things differently depending on the tag they get * * * This (part of) documentation was generated from [tools/tokenisers/tokeniser-tts-cggt-desc.pmscript](https://github.com/giellalt/lang-izh/blob/main/tools/tokenisers/tokeniser-tts-cggt-desc.pmscript)