Debian Codegraph @

TODO

raw
1 # -*- mode:org -*-
2
3
4 * Hun kan høre det @godt nu → Hun kan godt høre det nu
5 Wouldn't this change the meaning? ("hun kan godt" = she's allowed
6 to, "høre godt" = hear well)
7
8 * gjøre → gøre eller lave?
9
10
11 * Placement of preposition in idiomatic expressions. Less movement in nb?
12
13
14 * 'da' in the end of sentence → så + INVERSION
15
16
17 * hvor blev det @av ham? → hvor blev han af?
18 delete 'det'+ move 'av' to end of sentence + ham → nom
19
20 need to match "hvor" as well all; all nnwiki hits for " blei det av "
21 are non-mwe:
22 : I 1942 blei det av administrative grunnar slik at medlemer av
23 : I 2008 blei det av eit lag som hadde bruka Hubble-teleskopet og
24 : I 2013 blei det av _Morgenbladet_ tatt med i den norske dramatikk-kanon.
25
26 (no matches in nn/nb-wiki for " hvor ble det av " apart from a book title)
27
28
29 * if there's 'hvor' and 'går' we need 'hen':
30 1. after verb: Mary tror at hun så hvor James gikk → Mary tror at hun så hvor James gik _hen_
31 2. but before other advs: hvor James gikk hen i går
32 3. but after subj in questions: hvor går du hen? (not *hvor går hen du?)
33 4. and after the _final_ verb, not the first one: hvor James ville gå hen (not *hvor James ville hen gå)
34
35 Patch below handles 1 and 2 but not 3 and 4; might have to do it in
36 chunking instead
37
38
39 diff --git a/trunk/apertium-dan-nor/apertium-dan-nor.nor-dan.t1x b/trunk/apertium-dan-nor/apertium-dan-nor.nor-dan.t1x
40 index e455837..4173a26 100644
41 --- a/trunk/apertium-dan-nor/apertium-dan-nor.nor-dan.t1x
42 +++ b/trunk/apertium-dan-nor/apertium-dan-nor.nor-dan.t1x
43 @@ -257,6 +257,7 @@
44 <def-var n="blank"/>
45 <def-var n="grau_aux" c="lexical unit containing meir/mest if translating from sint to non-sint"/>
46
47 + <def-var n="missing-hen"/>
48 <def-var n="tmp"/>
49 <def-var n="genero"/>
50 <def-var n="definite"/>
51 @@ -275,6 +276,16 @@
52 <list-item v="&lt;nt&gt;"/>
53 </def-list>
54
55 + <def-list n="hen-verbs">
56 + <list-item v="gå"/>
57 + <list-item v="skulle"/>
58 + <list-item v="vandre"/>
59 + <list-item v="tage"/>
60 + <list-item v="ville"/>
61 + <list-item v="køre"/>
62 + <!-- være på vej som mwe? -->
63 + </def-list>
64 +
65 <!-- Verbs que s'usen amb 'være' en danès -->
66 <def-list n="vbambser">
67 <list-item v="tage"/>
68 @@ -611,6 +622,39 @@ Avoid these in <vblex><inf><pasv> Make them blive<inf><pres><actv> verb<pp>
69 </otherwise>
70 </choose>
71 </def-macro>
72 +
73 + <def-macro n="maybe-set-hen" npar="1"
74 + c="arg.1: adv">
75 +
76 + <let><var n="missing-hen"/><lit v=""/></let>
77 + <choose>
78 + <when>
79 + <test><equal><clip pos="1" side="tl" part="lemh"/><lit v="hvor"/></equal></test>
80 + <let><var n="missing-hen"/><lit v="hen"/></let>
81 + </when>
82 + </choose>
83 + </def-macro>
84 +
85 + <def-macro n="maybe-out-hen" npar="1"
86 + c="arg.1: verb">
87 + <choose><when>
88 + <test><and>
89 + <in><clip pos="1" side="tl" part="lemh"/><list n="hen-verbs"/></in>
90 + <equal><var n="missing-hen"/><lit v="hen"/></equal>
91 + </and></test>
92 + <out>
93 + <b/>
94 + <chunk name="adv">
95 + <tags><tag><lit-tag v="adv"/></tag></tags>
96 + <lu>
97 + <lit v="hen"/>
98 + <lit-tag v="adv"/>
99 + </lu>
100 + </chunk>
101 + </out>
102 + <let><var n="missing-hen"/><lit v=""/></let>
103 + </when></choose>
104 + </def-macro>
105 </section-def-macros>
106
107
108 @@ -1139,6 +1183,8 @@ Avoid these in <vblex><inf><pasv> Make them blive<inf><pres><actv> verb<pp>
109 </chunk>
110 </out>
111 </when></choose>
112 +
113 + <call-macro n="maybe-out-hen"><with-param pos="1"/></call-macro>
114 </action>
115 </rule>
116
117 @@ -1186,6 +1232,7 @@ Avoid these in <vblex><inf><pasv> Make them blive<inf><pres><actv> verb<pp>
118 </pattern>
119 <action>
120 <call-macro n="set_caseFirstWord"><with-param pos="1"/></call-macro>
121 + <call-macro n="maybe-set-hen"><with-param pos="1"/></call-macro>
122 <out>
123 <chunk name="adv" case="caseFirstWord">
124 <tags>
125 @@ -1221,6 +1268,7 @@ Avoid these in <vblex><inf><pasv> Make them blive<inf><pres><actv> verb<pp>
126 </pattern>
127 <action>
128 <call-macro n="set_caseFirstWord"><with-param pos="1"/></call-macro>
129 + <let><var n="missing-hen"/><lit v=""/></let>
130 <out>
131 <chunk name="punct" case="caseFirstWord">
132 <tags><tag><clip pos="1" side="tl" part="tags"/></tag></tags>