This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using Hunspell; | |
namespace ConsoleApplication5 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is "unmunching" script for Hunspell dictionaries, based on Spylls (full Python port of Hunspell): | |
# https://github.com/zverok/spylls | |
# | |
# "Unmunching" (Hunspell's term) is a process of turning affix-compressed dictionary into plain list | |
# of all language's words. E.g. for English, in the dictionary we have "spell/JSMDRZG" (stem + flags | |
# declaring what suffixes and prefixes it might have), and we can run this script: | |
# | |
# python unmunch.py path/to/en_US spell | |
# | |
# Which will produce this list: |