Difference between revisions of "Transfer rules"

From LING073
Jump to: navigation, search
(→‎Add or remove words)
(→‎Changing tags)
Line 31: Line 31:
  
 
== Changing tags ==
 
== Changing tags ==
 +
=== Simple context-free replacement ===
 +
* {{transferTest|kir|бийлечүбүз|bailabamos}}
 +
*: {{transferMorphTest|kir|бийле{{tag|v}}{{tag|iv}}{{tag|pih}}{{tag|p1}}{{tag|pl}}|baila{{tag|vblex}}{{tag|iv}}{{tag|pih}}{{tag|p1}}{{tag|pl}}}}
 +
 +
{{comment|TODO}}
 +
 
=== Context-free removal ===
 
=== Context-free removal ===
 
{{comment|TODO: livres courts → short books}}
 
{{comment|TODO: livres courts → short books}}
Line 40: Line 46:
  
 
Note that this goes together with the rearranging of the words, which can happen at any time in relation to the tag addition.
 
Note that this goes together with the rearranging of the words, which can happen at any time in relation to the tag addition.
 +
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Revision as of 00:58, 13 February 2017

The operations that can be performed by transfer rules are summarised here.

Add or remove words

Context-free removal

  • (eng) дүкенде → (at the store) {{{4}}}
    (eng) дүкен<n><loc> → (at<prp> a<det><def> store<n><sg>) {{{4}}}

TODO

Note that this goes hand-in-hand with the context-sensitive addition of a tag, which will need to happen before the words are removed.

Context-sensitive addition

  • (kaz) at the store → (дүкенде) {{{4}}}
    (kaz) at<prp> a<det><def> store<n><sg> → (дүкен<n><loc>) {{{4}}}

TODO

Note that this goes hand-in-hand with the context-free removal of a tag, which can happen at any point.

Rearranging word order

TODO: livres courts → short books

Note that this goes together with the context-free removal of a tag, which can happen at any point

TODO: short books → livres courts

Note that this goes together with the context-sensitive addition of a tag, which can happen at any point, but will be written differently depending on whether before or after this rule is applied


Changing tags

Simple context-free replacement

  • (kir) bailabamos → (бийлечүбүз) {{{4}}}
    (kir) baila<vblex><iv><pih><p1><pl> → (бийле<v><iv><pih><p1><pl>) {{{4}}}

TODO

Context-free removal

TODO: livres courts → short books

Note that this goes together with the rearranging of the words, which can happen at any time in relation to the tag removal.

Context-sensitive addition

TODO: short books → livres courts

Note that this goes together with the rearranging of the words, which can happen at any time in relation to the tag addition.