Difference between revisions of "Nepali and English"

From Apertium
Jump to navigation Jump to search
Line 8: Line 8:
! English phrase !! Pattern !! Action !! Chunk output
! English phrase !! Pattern !! Action !! Chunk output
|-
|-
| book || <code>nom</code> || - || nom { book }
| book || <code>nom</code> || - || <code>nom {</code> book <code>}</code>
|-
|-
| the book || <code>det_nom</code> || remove determiner || nom { book }
| the book || <code>det_nom</code> || remove determiner || <code>nom {</code> book <code>}</code>
|-
|-
| red book || <code>adj_nom</code> || - || adj_nom { red book }
| red book || <code>adj_nom</code> || - || <code>adj_nom {</code> red book <code>}</code>
|-
|-
| the red book || <code>det_adj_nom</code> || remove determiner || adj_nom { red book }
| the red book || <code>det_adj_nom</code> || remove determiner || <code>adj_nom {</code> red book <code>}</code>
|-
|-
| on the table || <code>pr_det_nom</code> || remove determiner,<br/>move preposition || nom_post { table on }
| on the table || <code>pr_det_nom</code> || remove determiner,<br/>move preposition || <code>nom_post {</code> table on <code>}</code>
|-
|-
| in the red book || <code>pr_det_adj_nom</code> || remove determiner,<br/>move preposition || adj_nom_post { red book in }
| in the red book || <code>pr_det_adj_nom</code> || remove determiner,<br/>move preposition || <code>adj_nom_post {</code> red book in <code>}</code>
|-
|-
|}
|}

Revision as of 10:21, 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 }