Difference between revisions of "Nepali and English"

From Apertium
Jump to navigation Jump to search
Line 6: Line 6:


{|class="wikitable"
{|class="wikitable"
! English phrase !! Pattern !! Action !! Chunk output
! English phrase !! Pattern !! Action !! Chunk output
|-
|-
| book || nom || - || nom { book }
| book || <code>nom</code> || - || nom { book }
|-
|-
| the book || det_nom || remove determiner || nom { book }
| the book || <code>det_nom</code> || remove determiner || nom { book }
|-
| red book || <code>adj_nom</code> || - || adj_nom { red book }
|-
|-
| red book || adj_nom || - || adj_nom { red book }
| the red book || <code>det_adj_nom</code> || remove determiner || adj_nom { red book }
|-
|-
| the red book || det_adj_nom || remove determiner || adj_nom { red book }
| on the table || <code>pr_det_nom</code> || remove determiner,<br/>move preposition || nom_post { table on }
|-
|-
| on the table || pr_det_nom || remove determiner,<br/>move preposition || nom_post { table on }
| 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 || pr_det_adj_nom || remove determiner,<br/>move preposition || adj_nom_post { red book in }
|-
|-
|}
|}

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