Skip to main content
#+TITLE: bltzr
#+OPTIONS: toc:nil num:nil

* Blitzer

A tool for vocabulary extraction intended for language learners.

** Supported Languages

The ready packs below support the orthographies documented in each pack.
Word boundaries use Unicode letters plus reviewed language-specific rules;
support is not limited to Latin script. Multiword paradigm entries are
omitted, and dictionary coverage varies. Development packs are excluded
from this list and from releases. The list describes this checkout's
next release; newly promoted packs become downloadable after publication.

- Adyghe (ady)
- Afrikaans (afr)
- Akan (aka)
- Albanian (sqi)
- Amharic (amh)
- Ancient Greek (grc)
- Anglo-Norman (xno)
- Armenian (hye)
- Ashaninka (cni)
- Assamese (asm)
- Asturian (ast)
- Aymara (aym)
- Azerbaijani (aze)
- Bashkir (bak)
- Basic (base)
- Basque (eus)
- Belarusian (bel)
- Bengali (ben)
- Braj (bra)
- Breton (bre)
- Bulgarian (bul)
- Catalan (cat)
- Cebuano (ceb)
- Central Kurdish (ckb)
- Central Pame (pbs)
- Chewa (nya)
- Chichicapan Zapotec (zpv)
- Classical Armenian (xcl)
- Classical Syriac (syc)
- Congo Swahili (swc)
- Cornish (cor)
- Cree (cre)
- Crimean Tatar (crh)
- Czech (ces)
- Dakota (dak)
- Danish (dan)
- Dutch (nld)
- Eastern Highland Chatino (cly)
- Egyptian Arabic (arz)
- Eibela (ail)
- English (eng)
- Estonian (est)
- Faroese (fao)
- French (fra)
- Friulian (fur)
- Gã (gaa)
- Galician (gal)
- Georgian (kat)
- German (deu)
- Gothic (got)
- Greenlandic (kal)
- Gujarati (guj)
- Gulf Arabic (afb)
- Haida (hai)
- Hebrew (heb)
- Hiligaynon (hil)
- Hindi (hin)
- Hungarian (hun)
- Icelandic (isl)
- Indonesian (ind)
- Ingrian (izh)
- Irish (gle)
- Italian (ita)
- Kabardian (kbd)
- Kannada (kan)
- Karelian (krl)
- Kashubian (csb)
- Kazakh (kaz)
- Ket (ket)
- Khakas (kjh)
- Khaling (klr)
- Khalkha Mongolian (khk)
- Kholosi (hsi)
- Kodi (kod)
- Kongo (kon)
- Kunwinjku (gup)
- Ladin (lld)
- Lamaholot (slp)
- Latin (lat)
- Latvian (lav)
- Lingala (lin)
- Lithuanian (lit)
- Livonian (liv)
- Livvi-Karelian (olo)
- Low German (nds)
- Lower Sorbian (dsb)
- Ludian (lud)
- Luganda (lug)
- Macedonian (mkd)
- Magahi (mag)
- Malagasy (mlg)
- Maltese (mlt)
- Manx (glv)
- Māori (mao)
- Mapudungun (arn)
- Mezquital Otomi (ote)
- Middle French (frm)
- Middle High German (gmh)
- Middle Low German (gml)
- Modern Greek (ell)
- Modern Standard Arabic (ara)
- Murrinhpatha (mwf)
- Navajo (nav)
- Neapolitan (nap)
- North Frisian (frr)
- Northern Kurdish (Kurmanji) (kmr)
- Northern Sami (sme)
- Norwegian Bokmål (nob)
- Norwegian Nynorsk (nno)
- O'odham (ood)
- Occitan (oci)
- Old Church Slavic (chu)
- Old English (ang)
- Old French (fro)
- Old High German (goh)
- Old Irish (sga)
- Old Norse (non)
- Old Saxon (osx)
- Oromo (orm)
- Pali (pli)
- Pashto (pus)
- Persian (fas)
- Polish (pol)
- Portuguese (por)
- Quechua (que)
- Romanian (ron)
- Russian (rus)
- Sakha (sah)
- San Pedro Amuzgos Amuzgo (azg)
- Scottish Gaelic (gla)
- Seneca (see)
- Serbo-Croatian (hbs)
- Shipibo-Konibo (shp)
- Shona (sna)
- Slovak (slk)
- Slovenian (slv)
- Southern Kurdish (sdh)
- Southern Sotho (Sesotho) (sot)
- Spanish (spa)
- Swedish (swe)
- Swiss German (gsw)
- Tagalog (tgl)
- Tatar (tat)
- Telugu (tel)
- Turkish (tur)
- Turkmen (tuk)
- Tuvan (tyv)
- Ukrainian (ukr)
- Upper Sorbian (hsb)
- Uyghur (uig)
- Uzbek (uzb)
- Venetian (vec)
- Veps (vep)
- Võro (vro)
- Votic (vot)
- Walmajarri (wmt)
- Welsh (cym)
- Western Frisian (fry)
- Xibe (sjo)
- Yaitepec Chatino (ctp)
- Yanesha (ame)
- Yiddish (yid)
- Yoloxóchitl Mixtec (xty)
- Zarma (dje)
- Zenzontepec Chatino (czn)
- Zulu (zul)

** Install

Requires Python 3.11 or newer.

#+begin_src sh
pip install bltzr
bltzr --help
#+end_src

** Extract vocabulary

#+begin_src sh
bltzr blitz -l eng -t "The dogs are running." --lemmatize
bltzr blitz -l eng --file chapter.txt --freq --context
cat chapter.txt | bltzr blitz -l eng --format tsv > vocabulary.tsv
#+end_src

=-l= chooses the language. Use =-t= for text, =--file= for a UTF-8 file,
or pipe text into the command. Words are shown as written by default;
=--lemmatize= shows dictionary forms, such as =dogs → dog=.

** Language packs

Basic (=base=) and English (=eng=) work immediately, without a download.
Basic extracts words without a dictionary and cannot lemmatize them.
Other languages need a pack:

#+begin_src sh
bltzr list-languages
bltzr install-plugin slv
bltzr blitz -l slv -t "Nisem tako prepričan."
#+end_src

To update an installed pack, use =bltzr install-plugin slv --replace=.
Processing works offline once the pack is installed.

The next release supports both pack configuration formats 1 and 2. Format 2
adds reviewed rules for tone marks, joiners and word-internal punctuation;
update the application before installing a format-2 pack. Dictionaries vary
in coverage, and support for a script does not imply coverage of every
orthography or dialect. See [[file:maintenance/reports/project-status-20261008.md][project status and remaining development work]].

Japanese remains a development pack. The optional analyzer can be tested
from this checkout with =.venv/bin/python -m pip install -e '.[dev,japanese]'=
and =--plugins-dir ./language-packs/dev=. Its dictionary must already be
installed; processing never downloads models automatically. Sanskrit,
Tibetan and Urdu still require additional lexical-segmentation work.

You can also install a local pack with =bltzr install-plugin ./my-pack/slv=.
To use this checkout's packs directly, add
=--plugins-dir /path/to/blitzer-py/language-packs= to the command.

** Create your config

Blitzer automatically reads =~/.config/bltzr/bltzr.toml=. No environment
variable or command-line option is needed. Create the file, then open it
in your editor:

#+begin_src sh
mkdir -p ~/.config/bltzr
touch ~/.config/bltzr/bltzr.toml
#+end_src

Here is an arbitrary default:

#+begin_src toml
[defaults]
freq = true
context = true
sort = "alphabetical"
bold = "markdown"
save_context = "flag-only"

[languages.eng]
known_file = "./eng-known.txt"
filter_by = "forms"
#+end_src

=[defaults]= applies to every language. =[languages.eng]= overrides
settings for English; use the language code visible with =bltzr list-languages= if you are not sure which to use.

Save your settings and run normally:

#+begin_src sh
bltzr blitz -l eng -t "He, she, it, swims!"
#+end_src

Use =-C PATH= to load another config, or =-n= to ignore configuration.
An existing config under =$XDG_CONFIG_HOME/bltzr/= takes priority if that
environment variable is set. =BLITZER_CONFIG= can explicitly select a
different file, but you do not need it for the default location.
Command-line options override your config; for example, =--no-context=
hides example sentences even when =context = true=.

See [[file:config.example.toml][config.example.toml]] for the full set of settings.

** Keep a list of words you know

Create the =eng-known.txt= file beside your config, with one word per line:

#+begin_src text
run
runs
#+end_src

With =filter_by = "forms"= knowing =ran= excludes that form while =run=
still appears. With =filter_by = "lemmas"= adding =run= excludes forms
of that lemma like =ran= and =runs=. Filtering and =--lemmatize= are separate choices.
Example sentences are selected from occurrences that survived filtering.

Without a config, pass the list with =--known-file PATH=. A missing known
list is treated as empty; ordinary processing does not create or update it.

Check for duplicates, then apply the cleanup if wanted:

#+begin_src sh
bltzr cleanup-known eng ~/.config/bltzr/eng-known.txt
bltzr cleanup-known eng ~/.config/bltzr/eng-known.txt --apply
#+end_src

Cleanup saves a =.bak= copy. =--test-known= previews automatic additions;
=--update-known= writes them. Automatic updating is off by default:
encountering a word does not mean you have learned it.

** Useful options

| Option | Effect |
|--------------------------+---------------------------------------------------------|
| =--freq= | Include each word's count in your text |
| =--context= | Include example sentences |
| =--context-limit 3= | Include up to three examples per word |
| =--bold off= | Turn off highlighting; also accepts html, markdown, org |
| =--sort appearance= | Keep the order words first appeared |
| =--sort textual-frequency= | Show the most frequent words first |
| =--exclude-unknown= | Hide words missing from the dictionary |
| =--format json= | Export JSON; also accepts text, tsv, report |

Sorting also accepts =alphabetical=, =global-frequency= (requires a pack
with frequency data), and =custom= with =--custom-order PATH=.

** Save and review example sentences

#+begin_src sh
bltzr blitz -l eng -t "He helps me." --lemmatize --save-context
bltzr history eng
bltzr history eng help
#+end_src

History uses the displayed word: =help= with =--lemmatize=, or =helps=
without it. Saved history is separate from your known-word list.

In config, =save_context= accepts ="flag-only"= (save when requested),
="always"=, ="prompt"=, or ="never"=. Use =--no-save-context= to skip saving.

** Help and development

#+begin_src sh
bltzr blitz --help
bltzr dev --help
#+end_src

For a source checkout, install with
=.venv/bin/python -m pip install -e '.[dev]'= after creating a virtual
environment. Run tests with =.venv/bin/python -m pytest -q=.
See [[file:maintenance/RELEASING.md][release setup]] for one-command GitHub/PyPI publication and
[[file:language-packs/README.md][language-pack publishing]] for manual releases.

** License

[[file:LICENSE][CC BY-SA 3.0]]. Dictionary packs retain their own licenses and attribution.

Metadata

Release files for bltzr 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bltzr 0.2.6
File Size Uploaded Provenance Actions
bltzr-0.2.6.tar.gz 29.6 MB With provenance Details for bltzr-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bltzr 0.2.6
File Interpreter ABI Platform Actions
bltzr-0.2.6-py3-none-any.whl Python 3 none any Details for bltzr-0.2.6-py3-none-any.whl

Total release size: 59.1 MB

Release files / bltzr-0.2.6.tar.gz

Download URL bltzr-0.2.6.tar.gz
Size 29.6 MB
Tags Source
SHA-256 checksum
How to use checksums
b27cc6f8e525f97ce464d52ad6e2f722f93c2b6ae54924205ff7146b7eb9a89d
BLAKE2b-256 checksum
How to use checksums
58f6d27a589d381862bc20bf4cb6e66ef5a543bf1b356e66e120d4534a11375c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / bltzr-0.2.6-py3-none-any.whl

Download URL bltzr-0.2.6-py3-none-any.whl
Size 29.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f5b00f455db6c27abbbd38f1e72b5017bbc203c70a3e5a94cdeb52cb20e575bc
BLAKE2b-256 checksum
How to use checksums
4d446d6c23eaca35a4153e4af93f2bd046c526a240d80a29c8f6668eade104c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Security for bltzr 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bltzr-0.2.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page