Difference between revisions of "Nepali and English"

From Apertium
Jump to navigation Jump to search
Line 5: Line 5:
===Local re-ordering and deletion===
===Local re-ordering and deletion===


{|class="wikitable"
<pre>
! English phrase !! Pattern !! Action !! Chunk output
SN {the book} SV {is} SN{on the table}
|-

| book || nom || - || nom { book }
->
|-

| the book || det_nom || remove determiner || nom { book }
SN {book} SV {is} SN{table on}
|-
</pre>
| red book || adj_nom || - || adj_nom { red book }

|-
* nom -> nom
| the red book || det_adj_nom || remove determiner || adj_nom { red book }
* det_nom -> nom
|-
* adj_nom -> adj_nom
| on the table || pr_det_nom || remove determiner,<br/>move preposition || nom_post { table on }
* det_adj_nom -> adj_nom
|-
* pr_det_nom -> nom_pr
| in the red book || pr_det_adj_nom || remove determiner,<br/>move preposition || adj_nom_post { red book in }
|-
|}


[[Category:Language pairs]]
[[Category:Language pairs]]

Revision as of 10:18, 3 October 2008

placeholder

Rules

Local re-ordering and deletion

English phrase Pattern Action Chunk output
book nom - nom { book }
the book det_nom remove determiner nom { book }
red book adj_nom - adj_nom { red book }
the red book det_adj_nom remove determiner adj_nom { red book }
on the table pr_det_nom remove determiner,
move preposition
nom_post { table on }
in the red book pr_det_adj_nom remove determiner,
move preposition
adj_nom_post { red book in }