do-elsass-smart
Offline full-text lookup for the historical Dictionary of the Alsatian Dialects.
do-elsass-smart lets you look up words in the public-domain Wörterbuch der elsässischen Mundarten (Martin & Lienhart, Straßburg 1899–1907) from the command line. It is built for anyone checking whether — and where — an Alsatian word or root is attested, and reading its historical entry. Because the text is OCR of Fraktur print with the dictionary’s own phonetic head-words, it is a full-text index of a historical source, not a clean modern lexicon.
Features
Searching the dictionary
- Offline lookup: searches run against a local index with no network access.
- Full-text results: returns the matching head-word and a highlighted snippet of the entry.
- Phrase matching: the search term is treated as a single FTS phrase, so multi-token roots match as written.
Building the index
- Local full-text index: one build creates a SQLite + FTS5 database on disk.
- Multi-source ingestion: one build can combine several OCR text files (full entries, the A–Z register, and the French loan-word companion).
- OCR-noise filtering: very short blocks (page numbers, running heads, stray characters) are dropped during indexing.
- Zero external dependencies: runs on Python 3 standard library (
sqlite3with FTS5) alone.
Roadmap
- Extend coverage to Band 2 full entries (C–Z): documented as a manual step — obtain that text, drop its
.txtfile in, and rebuild — pending because the complete Band 2 text is not freely available in bulk.