Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Suffix and Compound question

Help
Anonymous
2009-11-09
2013-06-03

  • Anonymous
    2009-11-09

    Hi all,

    I'm trying to write a dictionary that can recognize words like:

    acapia·mi·ddu

    where "acapia" is a verb with a suffix and mi and ddu are two clitics.

    The .dic file looks like this:

        4
            ·/·
            acapio/A
            mi/B
            ddu/C

    The .aff file looks like this:

        SET UTF-8
        FLAG UTF-8
       
        COMPOUNDMIN 1
        WORDCHARS ·
        COMPOUNDPERMITFLAG D
        COMPOUNDRULE 1
        COMPOUNDRULE G·B·C
       
        SFX A Y 1
        SFX A   o     a/GD         .

    Why I can't recognize acapia·mi·ddu ?

    Thanks, Massimeddu

     
  • Eleonora
    Eleonora
    2009-11-10

    Why is this solution not good for you:

    acapia.aff:
    SFX A Y 1
    SFX A o a·mi·ddu

    acapia.dic:
    1
    acapio/A

    Result:
    en@anonymous:~/dtest/perl/nevszo$ /home/en/program/hunspell-1.2.8/src/tools/unmunch /home/en/tmp/download/spell/qu_EC/acapia.dic /home/en/tmp/download/spell/qu_EC/acapia.aff
    parsing line: SFX A Y 1
    parsing A entries 1
    stable 0 num is 1 flag A
    parsed in 0 prefixes and 1 suffixes
    acapio
    acapia·mi·ddu

     

  • Anonymous
    2009-11-10

    Ok, thanks,

    I resolved!