Difference between revisions of "Talk:Welsh to English/Archive 1"

From Apertium
Jump to navigation Jump to search
Line 131: Line 131:
   
 
{{comment|::::Done. - [[User:Francis Tyers|Francis Tyers]]}}
 
{{comment|::::Done. - [[User:Francis Tyers|Francis Tyers]]}}
  +
  +
==(1.3.14) Verb + preposition==
  +
  +
Re "coolness factor" below (woop woop!), we need to cater for verbs such as "ymchwilio" which are followed by a preposition that is different from English, or where there is no preposition in English.
  +
  +
For example:
  +
;<s>ymchwilio i - research into, investigate</s>
  +
;<s>siarad am - talk about</s>
  +
;<s>dweud wrth - say to, tell</s>
  +
;<s>gofyn am - ask for</s>
  +
  +
Is there any way to get the verb+prep phrase parsed as a phrase, rather than separately? Perhaps an entry in one of the dictionaries? This would only need to be done for those phrases where the preposition differs in English and Welsh.
  +
  +
Not, for instance for:
  +
;neidio dros - jump over
  +
;cerdded i - walk to
  +
;delio gyda - deal with
  +
where there is a regular correlation between the meanings of the Welsh and English prepositions.
  +
  +
{{comment|
  +
:: Yes, these are multiword constructions, like for example "He became accustomed to the taste." → "cynefinodd Fe i y blas." (try it in the testing interface). Is there a way of getting a list of these? (actually there are many I currently need to fix in the bidix/English dict, but if you have a list I can look at them. At the moment we only seem to have multiword verbs on the English side. - [[User:Francis Tyers|Francis Tyers]]
  +
}}
  +
  +
{{comment|:::I will try to compile a list of the most common, and send it to you tomorrow. - [[User:Donnek|Donnek]]}}
   
 
==(1.3.17) Infinitive after "yn lle"==
 
==(1.3.17) Infinitive after "yn lle"==

Revision as of 07:54, 17 July 2008

Section numbers from this version.

(1.3.2) "was"

"roedd" ([he/she/it] was) is unknown, but I seem to remember adding entries for "to be" to the dixes in the mists of time. Was I dreaming? (roedd <- yr + oedd)

There are entries for 'bod', but 'roedd' doesn't get processed as all of the 'bod' entries start with 'b' (see this link). I will need to fix this in the analyser. If I understand you correctly, 'roedd' is a contraction of 'yr' (determiner ...) + 'oedd' (verb 'bod', past tense ...)? Francis Tyers


Some serious errors have crept in to those entries. I've sent an amended version to you by email. You're right - roedd -> yr + oedd, but in the amended version I've sent, I've put (e.g.) "roedd" and "oedd" as alternate forms, because "Roedd" is the spoken form, and even in written Welsh you hardly ever see "Yr oedd" nowadays. Donnek


The "bod" paradigm should now be all ok, there remains however to choose the restrictions (e.g. which forms we will generate for each set of tags). - Francis Tyers
the boy was in the garden -> *y bachgen bu yn yr ardd - bu'r bachgen yn yr ardd

Almost correct, except for word-order, and the fact that the preterite is being used instead of the imperfect ("roedd y bachgen yn yr ardd"). The preterite needs to be marked as only being used in written Welsh, and to have a lower likelihood than the imperfect. This is too rough a rule, but would do for the time being.

(1.3.4) Preferential choice between noun and verbform

atebodd hi'r cwestiwn -> *answered shethe #hold an inquiry - she answered the question

proc selects 'cwestiwn' (question) - correct - and 1p pl imperative of 'cwestio' (an infrequent verb for 'hold an inquiry'). The 1p pl present would also have been a possibility, and indeed a more likely one. tagger selects the second of these.

Not sure how widespread this would be, but the tagger should give precedence to the noun choice whenever the verb form is preceded by 'y':

For Welsh pattern "{y,yr,'r} + word_tagged_as_either_noun_or_verb"
output "{y,yr,'r} + noun"

This is not perfect, because "y | yr" can also be an indirect relative clause pronoun before a verb, but it would catch most things until we can resolve the latter point.

gwelodd y dyn y llyfr -> *the man saw the books - the man saw the book

This is similar, but is tricksy because it is superficially correct apart from the plural. But in fact, tagger is reading "llyfr" as pres 3p sing of "llyfru" (to book). Apart from being infrequent, and therefore much less likely to appear ("bwcio" would be the usual word), Eurfa has "llyfra" as the pres 3p sing, so there may be a paradigm problem too. The above rule would throw out the verb in the meantime.


It is currently using the aberth/u__vblex paradigm (see output here). Is this incorrect? - Francis Tyers


The problem is that "aberthu", apart from the 'regular' "abertha" also has a written "aberth". So yes, it probably is incorrect. The problem is that a lot of less common verbs are very rarely inflected. It might have been better to use something like "gwenu" or "siomi". In the meantime, perhaps just changing "aberth" to "abertha" in the pres 3p sing will do. - Donnek

(1.3.6) Number agreement of verb

I added 'rabbits' to the dictionary, but the problem of unknown words and phrase movement is one we're experiencing in Basque too... - Francis Tyers
OK - so it's basically an issue that you can't do much about until the word is logged. Hmm. I suppose that makes sense, since Apertium can't figure out what to do with something until it knows what it should do with it ... In a practical sense, this is going to be problematic if we demo Apertium using unseen text. Is there any way of doing some blind choosing, eg
if this word is
preceded by [y,yr,'r]
we will assume it's a noun
preceded by yn
we will assume it's a verb
unless a verb has been identified in the current phrase
in which case we'll assume it's an adjective
This might break Apertium - I don't know. In theory, though, we might be able to get relative probabilities for a particular sequences from a corpus. - Donnek

I'd be reluctant to add one as we'd not be able to get the translation, on the other hand, it wouldn't cause messing up of word order. It's an open problem, and we're thinking about it :) - Francis Tyers


(1.3.7) Prepositional noun phrase should not be a subject

cerddodd fo i'r dref -> he walked in the town

Fine, except that the preposition "i" should really be glossed as "to" ("yn y dref" would be "in the town")

Contrast:

cerddodd i'r dref -> *the town walked in - [he/she] walked to the town
Welsh pattern "prep + det.def + noun" is never a subject phrase

and therefore the "det.def + noun" section shouldn't be shifted. (I can't think of any exceptions to this, but there may be one.)

There was a rule to do this, I've commented it out, I think there was a reason for it, but I can't recall now. I've run the regression tests below and it doesn't seem to have broken anything. Regarding the preposition, should I change "i" to be "to" instead of "in" ? - Francis Tyers
Re "i", yes, change it to "to". - Donnek
The problem here was the dictionary only had i'r → yn+yr... i've added i'r → i+yr and now it is picking the right one, although I don't know what will happen for other contexts... - Francis Tyers
Not sure where that would have come from. The only vaguely relevant thing I can think of is "i mewn i" (into). - Donnek


allan i'r cyfarfod -> *the meeting #exit<vblex><pres><p3> in - out to the meeting

This is similar - "in" should be "to", and should be kept with "the meeting".

However, there is another issue here, which is in effect the same as "Preferential choice between noun and verbform" above. In this case, the verb "allanu" (to exit) is being chosen instead of the much more likely "allan" (out).

roedd o ar dy lyfr -> *was of on your books - it was on your book

1.3.9 would deal with "of", and 1.3.6 would deal with "books". Subject shift would then produce a reasonable translation.

However:

roedd ar dy lyfr -> *your #be<vbser><past><p3> on books - (it) was on your book

Omitting the subject pronoun can happen quite frequently in speech if the subject has already been mentioned. The <sg> tag gets lost at interchunk, which means the verb can't be conjugated (this came up somewhere else, but I think it's been taken off the page - maybe it would be better just to mark the issue heading as "addressed" rather than delete it). But there is an additional issue, in that the possessive pronoun is getting treated as the subject and moved separately. So maybe we need a broader rule to say that "prep + det.def/pr.poss/whatever + noun" is an indivisible chunk, and must be dealt with as a block. No part of it would be moved in this case anyway.

Regarding page cleanup, ok. perhaps having a separate section, and then moving sections down would be a good idea. - Francis Tyers

It would also be nice in the longer term to fill in the pronoun if it is omitted.

For Welsh pattern "verb + non-subject noun phrase"
output English "verb + pronoun agreeing in number and person + non-subject noun phrase"

The NSNP could be a prepositional phrase (marked by an initial preposition), or an object phrase (marked with initial soft mutation).

(1.3.8) "-ing" as "yn + verb"

For English pattern "subject + verb<vbser> + verb + ing"
output for Welsh "verb<vbser> + subject + yn + verb"

(1.3.9) Inflected verbs not being parsed

aeth -> *aeth - (he/she/it) went

However, "aeth" is listed in cy.dix.xml (line 27491) as past 3p sing in the mynd_vblex paradigm, which is what "mynd" (to go) gets conjugated against (line 54444).

Ah - a bug in the segmentation.

*myndaeth fo -> he went
he went -> *myndaeth fe

The infinitive is getting added to the irregular forms, instead of being replaced by them.

Yep, this is a problem in the paradigm for 'mynd', I'll need to rewrite it, fortunately it is only used once... New paradigm output here - Francis Tyers
Fine, but the imperative forms also need "mynd" excised. - Donnek
Done. - Francis Tyers

(1.3.14) Verb + preposition

Re "coolness factor" below (woop woop!), we need to cater for verbs such as "ymchwilio" which are followed by a preposition that is different from English, or where there is no preposition in English.

For example:

ymchwilio i - research into, investigate
siarad am - talk about
dweud wrth - say to, tell
gofyn am - ask for

Is there any way to get the verb+prep phrase parsed as a phrase, rather than separately? Perhaps an entry in one of the dictionaries? This would only need to be done for those phrases where the preposition differs in English and Welsh.

Not, for instance for:

neidio dros - jump over
cerdded i - walk to
delio gyda - deal with

where there is a regular correlation between the meanings of the Welsh and English prepositions.

Yes, these are multiword constructions, like for example "He became accustomed to the taste." → "cynefinodd Fe i y blas." (try it in the testing interface). Is there a way of getting a list of these? (actually there are many I currently need to fix in the bidix/English dict, but if you have a list I can look at them. At the moment we only seem to have multiword verbs on the English side. - Francis Tyers
I will try to compile a list of the most common, and send it to you tomorrow. - Donnek

(1.3.17) Infinitive after "yn lle"

For Welsh pattern "yn lle + verb<vblex><inf>"
output English "instead of + verb + ing"
For English pattern "instead of + verb + ing"
output Welsh "yn lle + verb<vblex><inf>"
Would you say "yn lle" is a multi-word preposition? - Francis Tyers
Yes, it is a compound preposition. "yn ei le" - instead of him (lit. in his place), "yn eu lle" - instead of them. But I don't want those included here, because there are places where you might want to translate them "in his place". - Donnek
yn lle mynd dros y ffordd -> *instead of go *dros the road - instead of going over the road

Incidentally, why is "dros" coming up as unknown here? I remember sweating over putting it in the dictionary (cy.dix line 46972, cy-en.dix line 49) :-)

It is on there, but under the paradigm /tros__pr, which means that it will never get detected... is 'dros' a mutation of 'tros' or a separate preposition, the same oddness goes for trwy and drwy. - Francis Tyers
Yes, they occur in both mutated and unmutated forms. I would think the mutated forms are more common. Hmm. I didn't realise the paradigms overwrote the cited form like that. In that case, we either need to do some [t,d] substitution, or (perhaps simpler) replicate the entire "tros" paradigm for "dros", replacing the t with d. Same for "trwy, drwy". - Donnek
This seems to be done. - Francis Tyers

(1.3.18) "i gyd"

This mean "all", and occurs after the noun:

roedd y cwningod i gyd yn ddiogel -> *the rabbits were I joint safe - all the rabbits were safe
For Welsh pattern "det.def + noun + [qualifiers] + i gyd"
output English "all + det.def + [qualifiers] + noun"
Is 'i gyd' considered an adjective or pronoun? (or something else?) :)- Francis Tyers
An adjective, I suppose. Certainly a qualifier of some sort. - Donnek
Making progress. We now get:
roedd y cwningod i gyd yn ddiogel -> *the all rabbits were safe
Just need to massage that slightly. - Donnek

(1.3.24) "llawer"

"llawer o" (a lot of, many) seems to be OK. But another rule would be useful to deal with the third coolness sentence:

For Welsh pattern "llawer + adj.comp"
output English "much + adj.comp"
dyn llawer hŷn -> *older many man - a much older man (see 1.3.10 for the "a")
Done. - Francis Tyers

(1.3.25) bod (inf) + subject pronoun + cael (inf)

Should this be mangled into:

be(inf)  + subject pronoun + get(inf)
that     + subject pronoun + had

e.g.

honiadau ei bod hi'n cael perthynas â
his allegations be she getting relation with → his allegations that she had relation with

... also on this subject, we currently don't have a verb for "have" in the bidix, the grammar i have suggests that "cael" might be it in a modal sense. - Francis Tyers

(1.3.26) Subordinate ("reported speech") clauses with "bod" + pronoun

The above (1.3.25) may be worth doing, but it may be better to deal with the more general construction.

In effect, this is the same construction as 1.3.15, but with the noun replaced by a pronoun. However, while in English the pronoun is a subject pronoun, in Welsh it is a possessive pronoun. This means that the "that" word ("bod") gets sandwiched by a the two parts of the possessive pronoun (either of which may not appear, depending on style), and is also mutated accordingly.

We're currently calling "ei" and friends possessive determiners, should we change this to possessive pronoun, or does it not make much of a difference? - Francis Tyers
Not much difference I think. Possessive determiner has the benefit that they can be considered to specify the noun in the same way as det.def. - Donnek

Thus, with a noun:

clywodd y dyn bod y trên yn cyrraedd yn hwyr (the man heard that the train was arriving late)

becomes, with a pronoun:

clywodd y dyn ei fod o'n cyrraedd yn hwyr (the man heard that it was arriving late)
For Welsh pattern "[pr.poss] + VBSER.inf_mutated + [pr.subj] + yn + verb"
output English "that + pr.subj + is + verb + -ing"
Hmm, this one is problematic as we throw away the "yn" in stage one transfer in the rule that turns "yn + vblex.inf" → "vblex.ger",
^det<SD><det><pos><sp>{^his<det><pos><2>$}$ ^verbinf<SV><vbser><inf>{^be<vbser><3>$}$ 
^prnsubj<SN><p3><m><sg>{^prpers<prn><subj><2><3><4>$}$ ^verbinf<SV><vblex><ger>{^arrive<vblex><3>$}$
Would it cause any problems if we made this rule:
For Welsh pattern "[pr.poss] + VBSER.inf_mutated + [pr.subj] + verb.ger"
output English "that + pr.subj + is + verb + -ing"
This would give: "the man heard that he is arriving late" (the "he" is an open issue)
- Francis Tyers
Done. - Francis Tyers
I was actually typing in the same suggestion, but you got there first! I don't think you can do much about the "he" without some sort of semantic check, which is not realistic at this stage. the only thing you could do would be to use "he/it", but that looks clumsy. - Donnek
For Welsh pattern "[pr.poss] + VBSER.inf_mutated + [pr.subj] + wedi + verb"
output English "that + pr.subj + have/s + verb.pp"
Done. - Francis Tyers


For Welsh pattern "[pr.poss] + VBSER.inf_mutated + [pr.subj] + am + SM_verb"
output English "that + pr.subj + will + verb"
Done. - Francis Tyers
For Welsh pattern "[pr.poss] + VBSER.inf_mutated + [pr.subj] + ar + SM_verb"
output English "that + pr.subj + is about to + verb"
Done. - Francis Tyers
For Welsh pattern "[pr.poss] + VBSER.inf_mutated + [pr.subj] + newydd + SM_verb"
output English "that + pr.subj + have/s just + verb.pp"

In the above Welsh patterns, at least one of pr.poss and pr.subj must be present.

mae hi'n dweud eu bod nhw wedi mynd -> *she is saying their that they have gone - fine apart from the redundant possessive
Now gives: she is saying that they have gone - Francis Tyers
Excellent. - Donnek
mae'n amlwg ei fod o'n dweud y gwir -> *is #obvious<adj><sint> his be hesaying the true - it is obvious that he is telling the truth
Now gives: is obvious that he is saying the true (perhaps "dweud y gwir" might be a good multiword verb → "tell the truth"?) - Francis Tyers
That would be a good shortcut. "gwir" is both adj (true) and noun.m (truth), but the second is not in Eurfa! - Donnek


cy-en    mae'n amlwg ei fod o'n dweud y gwir 
         is obvious that he is telling the truth 
dywedodd y bachgen ei bod hi newydd siarad â nhw -> *the boy said his be she new talk with they - the boy said that she had just talked to them
I'm leaving this one for now "... newydd ..", as it is harder to do as we don't mark adjective chunks with their lemma. - Francis Tyers

(1.3.27) Subject pronoun + verb (marked construction?)

"Fe dagodd ei wraig ar eu gwely yn eu cartref yn Abercynon ym mis Ebrill y llynedd ar ôl iddi ddweud ei bod yn ei adael am ddyn arall."

Gives:

"He his wife choked on their bed in their home in Abercynon in the April last year after to her say his be in his leave for other man."

The "normal" (VSO) order ("Dagodd fe ei wraig") would give:

he Choked his wife

Should we re-order prnsubj + verbcj → verbcj + prnsubj in the initial stage in order to normalise the word order?

Interesting - "fe dagodd ei wraig" is actually ambiguous in Welsh. It could mean "his wife choked", "he choked his wife", or at a pinch "it was he who choked his wife" (which would have suprasegmental differences). The news item is carrying over the subject of the previous sentence (the man) into this one, so the second choice is the correct one. But in isolation we wouldn't know.
I would hold on your suggestion, because the sentence actually omits the pr.3p.sing which would disambiguate - the "fe" at the beginning is not the (southern) pr.3p.sing - it is a (mostly southern) preverbal affirmative particle (equivalent to the (mostly northern) "mi"), in the same class as preverbal interrogative particle "a" and preverbal negative particle "ni". In fact, we need a rule to delete "fe/mi" before a conjugated verb (not perfect, but better than default), and in this case the sentence would have come out as the first choice ("his wife choked").
This is wrong in this context, but I can't see what Apertium could do about this without some complex inter-sentence parsing (if it's any consolation, a human reading this sentence in isolation might also make the same mistake until he came to the latter part).
Incidentally, if the pr.poss were omitted from "fe dagodd ei wraig" it would not be ambiguous - "fe dagodd gwraig - a woman choked", but "fe dagodd wraig - (he) choked a woman".
(Another incidentally - I have asked around, and while people do seem to accept that "his wife choked" is a possible interpretation, they discount it as a likely one. They would either use a different construction for this ("naeth ei wraig dagu"), or expect some additional information before considering it ("tagodd ei wraig ar afal" - his wife choked on an apple). We can't replicate this feeling in Apertium, however, because the sequence is ubiquitous with other verbs. In this case, there may be something inherent in the transitive/intransitive meanings that make people interpret the sequence as one rather than the other. It's certainly an interesting issue - surely a journal article in there somewhere!)
The "i + infin" needs a separate section.
The last part of the sentence "... ei bod yn ei adael am ddyn arall - ... that she is leaving him for another man" is in fact a special case of 1.3.26, with an object pronoun on the verb. We can see this if we take out the pr.obj:
ei bod hi'n gadael am ddyn arall -> that she is leaving for other man
Correct apart from "other", and that may be fixed if the revised 1.3.10 can be addressed. But note:
ei bod yn gadael am ddyn arall -> *his be leaving for other man
where the omission of the pr.subj means that the 1.3.26 rule is not being applied - we need to allow for this. In informal Welsh, the usual thing is to omit the pr.poss; in formal Welsh the usual thing is to omit the pr.subj. That may not be easy to handle.
I'm not going to deal with pr.obj in this construction until I have a few more basic constructions flagged - perhaps at the end of the week. - Donnek
Aha, thanks. Regarding the pr.obj construction, no problem. - Francis Tyers

(1.3.32) Subordinate "bod + pr" should not apply to inflected forms

mae o wedi dod -> *that he has come - he has come
mae o am adael -> *that he will leave - he will leave
I've restricted the "bod" to infinitive, now it gives:
He is after come
He is for leave
This does not seem to be a regression (I checked the tests), just that we haven't had a rule for verbcj{bod} SN{prnsubj} SP verbinf{SV} yet. - Francis Tyers
That's right - this is what I would have expected. We need to develop rules for periphrastic tenses. - Donnek

The rule in 1.3.26 above is being applied too broadly. As stated there, it should only apply when we have "bod" (ie the infinitive) in the verb place, eg:

ei fod o wedi dod -> that he has come
ei fod o am adael -> that he will leave

(1.3.38) Fragility of "bod + noun" (1.3.15)

Un bore yn yr asembli dywedodd y prifathro bod ymwelwyr tramor wedi dod i'r ysgol. -> one Morning in the *asembli the headmaster said that foreign visitors have come to the school.

This sentence is minimally adjusted from MM p43, and translates pretty well (though I find the odd capitalisation placement distracting - it would be better to have none).

However, it breaks fairly easily. The original sentence had "yn" instead of "wedi", and for this we get:

*one Morning in the *asembli the headmaster said be foreign visitors coming to the school.

The 1.3.15 rule needs to be expanded along the same lines as 1.3.26:

For Welsh pattern "VBSER.inf + [det.def] + noun + [qualifiers] + yn + verb"
output English "that + [det.def] + noun + [qualifiers] + is/are + verb + ing"

The original sentence also had "ymwelwyr o dramor", and this gives:

*one Morning in the *asembli the headmaster said be visitors he foreign after come to the school.

Possible CG rules:

LIST P3MSg = (p3 m sg)
SET PrnSubjP3MSg = PrnSubj + P3MSg
REMOVE PrnSubP3MSg IF (0 Pr) (0 PrnSubjP) (-1 N | VblexInf) (1 N)

I'm not sure how to express "or" in the specs, so I'm using the pipe - please adjust as necessary! "tramor" needs to be added to the dix as a noun - "overseas" - m.

I've added this rule, the keyword for 'or' is 'OR'.
# ymwelwyr o tramor 
REMOVE PrnSubj IF (0 Pr) 
                  (0 PrnSubjP3Sg) 
                  ((-1 NC) OR (-1 NP) OR (-1 VblexInf))
                  ((1 NC) OR (1 NP) OR (1 Adj));
I also added tramor to the dictionary, and this gives:
one Morning in the *asembli the headmaster said be visitors of overseas coming to the school.
I think the problem here is that "SN SP SN" is not detected as SN, and instead processed as three. I'll look into this. Btw, is there a plural for 'asembli' (I had a look around on the internet but couldn't find it.) - Francis Tyers
Now we get:
one Morning in the *asembli the headmaster said that foreign visitors are coming to the school.
- Francis Tyers

(1.3.39) Periphrastic tenses with "bod"

Re comments in 1.3.32 above:

For Welsh pattern "VBSER.pres + subject + [qualifiers] + yn + verb.infin"
output English "subject  + [qualifiers] + is/are + verb + -ing"
mae'r bachgen yn mynd -> The boy is going

Fine - the equivalent of 1.3.8 above, and it seems to be catered for already.

For Welsh pattern "VBSER.pii + subject + [qualifiers] + yn + verb.infin"
output English "subject  + [qualifiers] + was/were + verb + -ing"
roedd y bachgen yn mynd -> The boy was going

Fine again.

For Welsh pattern "VBSER.pres + subject + [qualifiers] + wedi + verb.infin"
output English "subject  + [qualifiers] + has/have + verb.pp"
mae'r bachgen wedi mynd -> *The boy is after go - the boy has gone
Done. - Francis Tyers
For Welsh pattern "VBSER.pii + subject + [qualifiers] + wedi + verb.infin"
output English "subject  + [qualifiers] + had + verb.pp"
roedd y bachgen wedi mynd -> *The boy was after go - the boy had gone
Done. - Francis Tyers
For Welsh pattern "VBSER.pres + subject + [qualifiers] + am + SM_verb.infin"
output English "subject  + [qualifiers] + is going to + verb"
mae'r bachgen am fynd -> *The boy is for go - the boy is going to go
Done. - Francis Tyers
For Welsh pattern "VBSER.pii + subject + [qualifiers] + am + SM_verb.infin"
output English "subject  + [qualifiers] + was going to + verb.pp"
roedd y bachgen am fynd -> *The boy was for go - the boy was going to go
Done. - Francis Tyers

There are other forms, but these will do for the moment.

Note that the last two of these forms are ubiquitous in Irish English: "he's after buying another one", "he was for going yesterday".

These now all seem to be done. - Francis Tyers