Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Lingua::Ispell dictionary

by usrbinperl (Initiate)
on Apr 09, 2002 at 19:19 UTC ( [id://157831]=perlquestion: print w/replies, xml ) Need Help??

usrbinperl has asked for the wisdom of the Perl Monks concerning the following question:

I am using the Lingua::Ispell module, but I need to use my own dictionary (and only my own) due to a limited number of words to check against. I am not sure how to build my own dictionary and what format the dictionary needs to be in.

I know that I need to include either the function 'use_dictionary' or 'use_personal_dictionary' but I don't which does what.

Any ideas or suggestions are greatly appreciated!

Replies are listed 'Best First'.
Re: Lingua::Ispell dictionary
by extremely (Priest) on Apr 09, 2002 at 22:32 UTC
    Reading the man pages would show you:

    use_dictionary([dictionary])

    Specifies what dictionary to use instead of the default. Dictionary names are actually file names, and are searched for according to the following rule: if the name does not contain a slash, it is looked for in the directory containing the default dictionary, typically /usr/local/lib. Otherwise, it is used as is: if it does not begin with a slash, it is construed from the current directory.

    If no argument is given, the default dictionary will be used.

    --
    $you = new YOU;
    honk() if $you->love(perl)

Re: Lingua::Ispell dictionary
by hossman (Prior) on Apr 09, 2002 at 23:01 UTC
    Unless I'm mistaken, Lingua::Ispell is a wrapper arround the unix program ispell (Either that, or a re-implimentation)

    As far as the difference between a personal dictionary and a regular dictionary, refer to the ispell documentation: man1 man5

    It's not immediately obvious from most user level documentation how to make a new dictionary.... you'll have to get the source for ispell and use the buildhash & munchlist scripts. (Or if you want to make an I18N dictionary, take a look at buildict.pl)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://157831]
Approved by gregorovius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-23 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found