Skip to content

Instantly share code, notes, and snippets.

View anezih's full-sized avatar

Nezih Aşula anezih

View GitHub Profile
@anezih
anezih / unmunch.py
Created April 6, 2024 00:20 — forked from zverok/unmunch.py
"Unmunch" (linearize) word list from Hunspell dictionary with the help of Spylls library
# 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:
@anezih
anezih / words.cs
Created April 24, 2023 17:34 — forked from aarondandy/words.cs
Make words
using System.Collections.Generic;
using System.Linq;
using Hunspell;
namespace ConsoleApplication5
{
class Program
{
static void Main(string[] args)
{