Per Tunedal <[email protected]>
writes:

> Hi Francis,
> Excellent! What should I do to get it to work in the opposite direction.
> I would like to keep the analysis of incorrectly inflected adjectives,
> like "samhälleligare", but "mer samhällelig" should be generated.

You could mark "samhälleligare" as LR.

The nno-nob bidix uses pardefs for the various possibilities like
adj.sint to adj (or adj to adj.sint). If you allow a synthetic LR form
in an otherwise analytic monodix pardef, the bidix pardefs could deal
with that. If we use the bidix pardefs from nno-nob as a basis, it'd
probably look something like this:

<pardef n="adjgrad" c="Used by adj pardefs">
  <e>       <p><l><s n="comp"/></l>             <r><s n="comp"/></r></p></e>
  <e>       <p><l><s n="pst"/></l>              <r><s n="pst"/></r></p></e>
  <e>       <p><l><s n="sup"/></l>              <r><s n="sup"/></r></p></e>
</pardef>
<pardef n="adj" c="Analytic on both sides">
  <e>       <p><l><s n="adj"/></l>              <r><s n="adj"/></r></p><par 
n="adjgrad"/></e>
  <e r="LR"><p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/></r></p><par 
n="adjgrad"/></e>
  <e r="RL"><p><l><s n="adj"/></l>              <r><s n="adj"/><s 
n="sint"/></r></p><par n="adjgrad"/></e>
</pardef>
<pardef n="adj_sint" c="Synthetic on both sides">
  <e>       <p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/><s 
n="sint"/></r></p><par n="adjgrad"/></e>
</pardef>
<pardef n="adj_sint:adj" c="Synthetic left, analytic right">
  <e>       <p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/></r></p><par 
n="adjgrad"/></e>
  <e r="RL"><p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/><s 
n="sint"/></r></p><par n="adjgrad"/></e>
</pardef>
<pardef n="adj:adj_sint" c="Analytic left, synthetic right">
  <e>       <p><l><s n="adj"/></l>              <r><s n="adj"/><s 
n="sint"/></r></p><par n="adjgrad"/></e>
  <e r="LR"><p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/><s 
n="sint"/></r></p><par n="adjgrad"/></e>
</pardef>

The analytic adj pardef translates adj to adj, but if it sees an
adj.sint (samhälleligare), it translates it into analytic adj. Similarly
for the other pardefs. The "adjgrad" is there to make sure we don't have
two pardefs matching the same input.

-----

I don't think it makes sense to correct the other direction, that'd just
lead to overcorrection (try searching the web for e.g. "mer vacker";
most of the hits seem to be correct, like "lite mer vacker höstskräck",
"aldrig mer väcker").

-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to