Tony Mechelynck wrote:

> On 29/03/09 22:29, Eric Smith wrote:
> >
> > Dutch nouns are preceded by the definite article "de" or "het" in
> > the singular.  As a non-native, I would like to configure vim to
> > check if I have used the correct form.
> >
> > Has anyone implemented this or this type of functionality?
> >
> > Thanks
> >
> 
> I'm not sure it's possible with the spelling software Vim uses, since 
> this is not a pure "vocabulary" word ("this word does / doesn't belong 
> to the language") but a "grammar" rule ("this valid word is / isn't 
> permitted in this context"):
> 
> het huis              OK              (the house)
> de huis                       not OK
> het grote huis                OK              (the big house)
> het groot huis                not OK
> welk huis?            OK              (which house?)
> welke huis?           not Ok
> welk groot huis?      OK              (which big house?)
> welk grote huis?      not OK
> de weg                        OK              (the way)
> het weg                       not OK
> de lange weg          OK              (the long way)
> de lang weg           not OK
> welke weg?            OK              (which way?)
> welk weg?             not OK
> welke lange weg?      OK              (which long way?)
> welke lang weg?               not OK
> 
> ik wil                        OK              (I want)
> je wil                        not OK
> je wilt                       OK              (you [sg.] want)
> wilt je?              not OK
> wil je?                       OK              (do you want?)
> wij wil                       not OK
> wij willen            OK              (we want)
> 
> etc.
> 
> I may be wrong though, spelling software is not my forte. Maybe Dr. Chip 
> will know the details better.

You can add specific words or word combinations and mark them as bad.
In the .aff file define a flag for BAD, see ":help spell-BAD".
Then use this flag on any words that are wrong.  There can be a space in
there, e.g.:
        de huis/!
        welke huis/!


-- 
ZOOT:  I'm afraid our life must seem very dull and quiet compared to yours.
       We are but eightscore young blondes, all between sixteen and
       nineteen-and-a-half, cut off in this castle, with no one to protect us.
       Oooh.  It is a lonely life ... bathing ...  dressing ... undressing ...
       making exciting underwear....
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to