[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: Re: [Aspell-user] 100% Custom Dictionary (no standard words) How?
From: Bill Moseley <moseley () hank ! org>
Date: 2003-08-08 22:26:26
Message-ID: 20030808222626.GB28305 () hank ! org
[Download RAW message or body]
[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
moseley@hank.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic