Difference between revisions of "Transfer rules"

From LING073
Jump to: navigation, search
(→‎Context-free removal)
(→‎Rearranging word order)
 
(11 intermediate revisions by one other user not shown)
Line 4: Line 4:
  
 
=== Context-free removal ===
 
=== Context-free removal ===
−
* {{transferTest|eng|at a store|дүкенде}}
+
* {{transferTest|eng|kaz|at the store|дүкенде}}
−
*: {{transferMorphTest|eng|at{{tag|prp}} {{tag|det}} store{{tag|n}}{{test|sg}}|дүкен{{tag|n}}{{tag|loc}}}}
+
*: {{transferMorphTest|eng|kaz|at{{tag|prp}} a{{tag|det}}{{tag|def}} store{{tag|n}}{{tag|sg}}|дүкен{{tag|n}}{{tag|loc}}}}
  
−
{{comment|TODO}}
+
{{comment|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.
 
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 ===
 
=== Context-sensitive addition ===
−
{{comment|TODO: дүкенде → at a/the store}}
+
* {{transferTest|kaz|eng|дүкенде|at the store}}
 +
*: {{transferMorphTest|kaz|eng|дүкен{{tag|n}}{{tag|loc}}|at{{tag|prp}} a{{tag|det}}{{tag|def}} store{{tag|n}}{{tag|sg}}}}
 +
 
 +
{{comment|TODO}}  
  
 
Note that this goes hand-in-hand with the context-free removal of a tag, which can happen at any point.
 
Note that this goes hand-in-hand with the context-free removal of a tag, which can happen at any point.
−
 
  
 
== Rearranging word order ==
 
== Rearranging word order ==
Line 26: Line 28:
 
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
 
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 ===
 +
* {{transferTest|kir|spa|бийлечүбүз|bailabamos}}
 +
*: {{transferMorphTest|kir|spa|бийле{{tag|v}}{{tag|iv}}{{tag|pih}}{{tag|p1}}{{tag|pl}}|baila{{tag|vblex}}{{tag|iv}}{{tag|pih}}{{tag|p1}}{{tag|pl}}}}
  
 +
{{comment|TODO}}
  
−
== Changing tags ==
 
 
=== Context-free removal ===
 
=== Context-free removal ===
 
{{comment|TODO: livres courts → short books}}
 
{{comment|TODO: livres courts → short books}}
Line 35: Line 41:
  
 
=== Context-sensitive addition ===
 
=== Context-sensitive addition ===
 +
E.g., for fixing agreement or concord.
 +
 
{{comment|TODO: short books → livres courts}}
 
{{comment|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.
 
Note that this goes together with the rearranging of the words, which can happen at any time in relation to the tag addition.
 +
 +
== Rearranging the order of tags ==
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Latest revision as of 21:06, 10 April 2019

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

Add or remove words

Context-free removal

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

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) дүкенде → (eng) at the store
    (kaz) дүкен<n><loc> → (eng) at<prp> a<det><def> store<n><sg>

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) бийлечүбүз → (spa) bailabamos
    (kir) бийле<v><iv><pih><p1><pl> → (spa) baila<vblex><iv><pih><p1><pl>

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

E.g., for fixing agreement or concord.

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.

Rearranging the order of tags