Difference between revisions of "Northern Sámi and Norwegian/tNxIntros"

From Apertium
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


This is the first pass. Responsibilities of this file include:
This is the first pass. Responsibilities of this file include:

* Chunking (all rules)
* Chunking (all rules)
* Handling part-of-speech changes introduced by bidix.
* Handling part-of-speech changes introduced by bidix.
** Rules match on source tags, so a sme verb which is specified as a nob noun has to be handled by the verb rule (this leads to some redundancy, hopefully we'll get a bidix module soon)
** Rules match on source tags, so a sme verb which is specified as a nob noun has to be handled by the verb rule (this leads to some redundancy, hopefully we'll get a bidix module soon)
* (De-)compounding
* (De-)compounding
** See rule: NOM.CMP NOM
** See rule: NOM.CMP NOM
Line 17: Line 16:
** See macro: out_nom
** See macro: out_nom
* Insert prepositions based on nominal case
* Insert prepositions based on nominal case
** These get their own chunk; t2x might have to remove them in co-ordination or post-position rules or might change them if the verb requires something else
** These get their own chunk; t2x might have to remove them in co-ordination or post-position rules or might change them if the verb requires something else
** See macro: set_caseprep
** See macro: set_caseprep
* Verb auxiliaries
* Verb auxiliaries
** Tags from sme verbs are used to output finite verb auxiliaries before the main verb. All verbs get their own chunks, as do lemq's (since they can move around noun phrases in t3x)
** Tags from sme verbs are used to output finite verb auxiliaries before the main verb. All verbs get their own chunks, as do lemq's (since they can move around noun phrases in t3x)
** See macro: out_verb
** See macro: out_verb


Line 29: Line 28:
* Simple anaphora resolution; we keep track of gender of p3 sg subjects using the variables "ana_m_f" and "ana_gen", applying this to GD-tagged SN's and all FV's.
* Simple anaphora resolution; we keep track of gender of p3 sg subjects using the variables "ana_m_f" and "ana_gen", applying this to GD-tagged SN's and all FV's.
** See rule: FV, SN
** See rule: FV, SN
** Note: this only applies gender in a forward direction, applying gender from the noun to pronoun in 'Pron is N' constructions happens in t3x
** Note: this only applies gender in a forward direction, applying gender from the noun to pronoun in 'Pron is N' constructions happens in t3x
* Keeping track of verb temps for eg. Actio.Ess (which is tagged TD) using the variable "ana_temps"
* Keeping track of verb temps for eg. Actio.Ess (which is tagged TD) using the variable "ana_temps"
** See rule: FV, V.TD
** See rule: FV, V.TD
Line 45: Line 44:
* Removing Pcle.Qst and putting the Qst tag on the preceding chunk, so that they're treated as if there were no space
* Removing Pcle.Qst and putting the Qst tag on the preceding chunk, so that they're treated as if there were no space
** See rule: SN PCLE.Qst
** See rule: SN PCLE.Qst
** PCLE.Qst variants could probably be added to many of the other rules here too, still TODO, but the most likely seem to be covered.
** PCLE.Qst variants could probably be added to many of the other rules here too, still TODO, but the most likely seem to be covered.

TODO:
* relatives (SN "who" SV SV* -> SN), both 'real' and those that started life as Agent Constructions
* 'adpos' covers both Pr and Po, tag them as such in t1x so that the rules here don't overgeneralise




Line 66: Line 69:
** See macro modify_GD_ND_subj3
** See macro modify_GD_ND_subj3
** Only regards pre-verbal GD/ND subjects, post-verbal are handled in t2x
** Only regards pre-verbal GD/ND subjects, post-verbal are handled in t2x

TODO
* Using verb animacy/number to guess GD/ND subject gender/number
** See macro modify_GD_ND_subj3


== apertium-sme-nob.sme-nob.t4x ==
== apertium-sme-nob.sme-nob.t4x ==
Line 80: Line 87:
* Does not output spaces occuring after a 'cmp'
* Does not output spaces occuring after a 'cmp'
** See rule: det_cmp_nom
** See rule: det_cmp_nom

TODO: prpers entries in nob.dix, to avoid the clean_pron mess.





Latest revision as of 18:36, 24 April 2014

Here come the comments on the beginning of each tNx file. Read at own risk, you may have forgotten to update them...

apertium-sme-nob.sme-nob.t1x[edit]

This is the first pass. Responsibilities of this file include:

  • Chunking (all rules)
  • Handling part-of-speech changes introduced by bidix.
    • Rules match on source tags, so a sme verb which is specified as a nob noun has to be handled by the verb rule (this leads to some redundancy, hopefully we'll get a bidix module soon)
  • (De-)compounding
    • See rule: NOM.CMP NOM
  • goahti-derivation
    • See rule: VERB Der/goahti
  • Simple noun phrases
    • Heads and their simple modifiers/specifiers: adj nom, adj adj nom, det adj adj nom, num adj nom
    • See rule: DET ADJ_ATTR NOM
    • See macro: out_nom
  • Insert prepositions based on nominal case
    • These get their own chunk; t2x might have to remove them in co-ordination or post-position rules or might change them if the verb requires something else
    • See macro: set_caseprep
  • Verb auxiliaries
    • Tags from sme verbs are used to output finite verb auxiliaries before the main verb. All verbs get their own chunks, as do lemq's (since they can move around noun phrases in t3x)
    • See macro: out_verb

apertium-sme-nob.sme-nob.t2x[edit]

This is the second pass. Responsibilities of this file include:

  • Simple anaphora resolution; we keep track of gender of p3 sg subjects using the variables "ana_m_f" and "ana_gen", applying this to GD-tagged SN's and all FV's.
    • See rule: FV, SN
    • Note: this only applies gender in a forward direction, applying gender from the noun to pronoun in 'Pron is N' constructions happens in t3x
  • Keeping track of verb temps for eg. Actio.Ess (which is tagged TD) using the variable "ana_temps"
    • See rule: FV, V.TD
  • Co-ordination
    • Removes superfluous prepositons
    • See rule: SN CNP SN, FV CVP FV
  • Some definiteness changes for genitive clauses etc.
    • See rule: SN_rN SN
  • Moving postpositions
    • See rule: SN ADPOS -> ADPOS SN
  • Removing prepositions when case is governed by adpositions
    • See rule: PR SN_RPOST adpos
  • Removing essive caseprep ('som') after vcop
    • See rule: vcop-FV caseprep-PR.ess
  • Removing Pcle.Qst and putting the Qst tag on the preceding chunk, so that they're treated as if there were no space
    • See rule: SN PCLE.Qst
    • PCLE.Qst variants could probably be added to many of the other rules here too, still TODO, but the most likely seem to be covered.

TODO:

  • relatives (SN "who" SV SV* -> SN), both 'real' and those that started life as Agent Constructions
  • 'adpos' covers both Pr and Po, tag them as such in t1x so that the rules here don't overgeneralise


apertium-sme-nob.sme-nob.t3x[edit]

This is the third pass. Responsibilities of this file include:

  • V2 Movement etc., rules which involve verb, adverb and/or noun chunks
    • See rule: SPEC SN FV
  • Inserting dropped pronouns
    • Overridden by rules matching the maybe-[LR]SUBJ categories; these include unknowns and should just be passed through unchanged.
    • See macro: set_pro
  • Inserting adverbs to indicate modality
    • See macro: set_adv
  • Correct definiteness using the larger context (eg. verb animacy / number / temps)
    • See macro: set_defnes2
  • Change perfect participle of non-finites to preterite when following the negation verb
    • See rules with FV.Neg
  • Using verb animacy/number to guess GD/ND subject gender/number
    • See macro modify_GD_ND_subj3
    • Only regards pre-verbal GD/ND subjects, post-verbal are handled in t2x

TODO

  • Using verb animacy/number to guess GD/ND subject gender/number
    • See macro modify_GD_ND_subj3

apertium-sme-nob.sme-nob.t4x[edit]

This is the fourth pass. Responsibilities of this file include:

  • Inserting articles
    • See rule: pre_nom
    • See macro: maybe_out_det2
  • Cleanup
    • Making sure tags are consistent with nob.dix (esp. adjectives, personal pronouns)
    • See macro: clean_adj
    • See macro: clean_det (also used for numerals)
  • Does not output spaces occuring after a 'cmp'
    • See rule: det_cmp_nom

TODO: prpers entries in nob.dix, to avoid the clean_pron mess.