aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Aspell-user] 100% Custom Dictionary (no standard words) How?


From: Bill Moseley
Subject: Re: [Aspell-user] 100% Custom Dictionary (no standard words) How?
Date: Fri, 8 Aug 2003 15:26:26 -0700
User-agent: Mutt/1.5.4i

[when you reply to an existing message the message threading gets 
broken]

On Fri, Aug 08, 2003 at 01:18:59PM -0700, J/ wrote:
> I've been trying to use aspell off and on for about 6 months now.  I've
> asked this once before and nobody ever responded.  Actually as far as I
> can tell, nobody ever responds to anything on this list...

Kind of scary.

> I'm wanting to create my own custom dictionary -- entirely.

>From the Text::Aspell perl module:


       Create a dictionary:

           $ aspell --lang=en create master ./dictionary.local < 
space_separated_word_list

       Then in your code:

           use Text::Aspell;
           my $speller = Text::Aspell->new;
           die unless $speller;
           $speller->set_option('master','./dictionary.local');
           # check a word
           print $speller->check( $word )
                 ? "$word found\n"
                 : "$word not found!\n";


-- 
Bill Moseley
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]