PocketMagic

PocketMagic

Where Technology meets magic


Android
45 Posts
BlackBerry
4 Posts
Electronics
68 Posts
Hardware
120 Posts
High Voltage
49 Posts
iPhone
4 Posts
Linux
2 Posts
Nuclear
20 Posts
Optics
11 Posts
Photography
7 Posts
Photoshop
3 Posts
Research
19 Posts
Reviews
18 Posts
Robotics
8 Posts
Security
7 Posts
Software
73 Posts
Symbian
2 Posts
Tubes
18 Posts
Windows
3 Posts
Windows Mobile
11 Posts

Top Articles!       See PocketMagic on Facebook


uRADMonitor - Online Radiation monitoring station | 14914 Views | Rate 70.02
uRADMonitor - Online Radiation monitoring station
Bluetooth and iOS - Use Bluetooth in your iPhone apps | 18139 Views | Rate 58.51
Bluetooth and iOS - Use Bluetooth in your iPhone apps
NMEA GPS Library for AVR Microcontrollers | 4825 Views | Rate 56.1
NMEA GPS Library for AVR Microcontrollers
Programmatically Injecting Events on Android - Part 2 | 5002 Views | Rate 44.66
Programmatically Injecting Events on Android - Part 2
Building a robot – Part 2 | 4599 Views | Rate 44.22
Building a robot – Part 2
Simple Switched power Supplies | 16129 Views | Rate 41.78
Simple Switched power Supplies
Capacitor Discharge Microspot Welder / Cutter | 11335 Views | Rate 36.45
Capacitor Discharge Microspot Welder / Cutter
Atmega8 and Nokia 5110 LCD  | 1537 Views | Rate 34.93
Atmega8 and Nokia 5110 LCD

 
  

Aspell word lists / dictionaries for several languages


By Radu Motisan Posted on July 11th, 2009 , 1139 Views (Rate 0.81)



  




"GNU Aspell, usually called just Aspell, is a free software spell checker designed to replace Ispell. It is the standard spell checker for the GNU software system....Dictionaries for it are available for about 70 languages."

And since it is a spell checker, it comes with huge word lists embedded in its dictionaries.

For various purposes, one might need to see such a word list. But the aspell files, located in:
/usr/lib/aspell and /var/lib/aspell as *.rws files
are quite hard to be read.

To list the words in a given dictionary you can use:
aspell dump master
In my case it shows a list of English words, since this is my main dictionary file.

To list a different dictionary try:
aspell -l de dump master
This will list the german dictionary, as I've indicated with -l parameter (de). In case you don't have this language/dictionary installed, you'll receive an error message:
"Error: The file "/usr/lib/aspell/de" can not be opened for reading."

You can install additional language packages with:
sudo apt-get install aspell-de
See a list of dictionaries (and country abbreviation) here.

For some languages (eg. Dutch), the words are 'compressed' using affixes. You'll get some weird output:
aspell -l nl dump master
Shows:
...
bloot/G
blootte
blote/N
...
To uncompress the word list, and see them in plain text use:
aspell -l nl dump master | aspell -l nl expand
You now get:
...
bloot gebloot blootte
...
To put the words on separate lines try:
aspell -l nl dump master | aspell -l nl expand | tr ' ' '\n'
The last instruction basically replaces all spaces with Enter - so careful for combined words (frequent in some languages).

To save the list to a text file redirect like:
aspell -l nl dump master | aspell -l nl expand | tr ' ' '\n' > dump-nl.txt

Be careful how you use these word lists since most of the Aspell dictionaries are copyrighted. See the Aspell page for more details.

Radu Motisan






  

More on PocketMagic:

Tube: USN-5J29 | 355 Views | Rate 25.36
Tube: USN-5J29
Atmega8 and enc28J60 for ethernet support | 7272 Views | Rate 24.65
Atmega8 and enc28J60 for ethernet support
How to set the AVR Fusebits | 1710 Views | Rate 23.75
How to set the AVR Fusebits
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164 | 2054 Views | Rate 22.82
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164
Dual H-Bridge for controlling two motors | 1196 Views | Rate 21.36
Dual H-Bridge for controlling two motors
USBAsp -  AVR USB Programmer  | 8081 Views | Rate 20.99
USBAsp - AVR USB Programmer

One Response to “Aspell word lists / dictionaries for several languages”

  1. 1
    Romash:

    What languages doesn’t Aspell spell check support?

Thank you for commenting. Your comment won't show until approved, which can take some time.

Please copy the string ziHcri to the field below: