langdetect-rs
Language detection identical to Python's langdetect, bit for bit, 40–52× faster on one core and up to 315× with all cores.
pip install langdetect-rsOpen-source libraries · Rust · Python · Ruby
We port slow reference implementations to fast, verified code, build gems for AI features in Rails apps, and publish the code and data behind our research.
New · 0.2.1rougers / rouge-score-rs
rouge-score, 30–80× faster on one coreA Rust port of Google's rouge-score, the implementation behind Hugging Face Evaluate. Every float matches, including the tokenizer, the Porter stemmer and rougeLsum. Change one import and keep your code.
pip install rouge-score-rsApple M1 Pro, Python 3.12, median of 3 runs, scores checked bit for bit. Speedups depend on text length, metrics and threads: 30–80× on one core and 83–353× on eight across CNN/DailyMail, XSum and PubMed. Full benchmarks
Libraries
Language detection identical to Python's langdetect, bit for bit, 40–52× faster on one core and up to 315× with all cores.
pip install langdetect-rsLSTM, GRU and BiLSTM networks with full backpropagation through time, gradients checked against finite differences and PyTorch.
cargo add rust-lstmLong-term memory for AI agents in Ruby: recall the facts that matter and add them to the prompt, stored in your own Postgres.
gem install engramResearch
Each study ships with its code, prompts, raw outputs and a DOI on Zenodo.
Oct 2026 · O. Kholodniak, O. Prokhorov
How dropout, zoneout and gate initialisation change how far gradients reach back in time in LSTM and GRU networks, and whether that reach, measured early in training, predicts which runs learn long-range dependencies. Trained with rust-lstm.
Oct 2026 · O. Kholodniak
Item response models against simple estimators on public model × item correctness matrices: how well each estimates item difficulty, a new model's capability and its full-benchmark accuracy when only 0.5–80% of the items are run.
Oct 2026 · O. Kholodniak
Choosing per request between a small on-device model, a larger LAN server and a cloud API: latency model, routing policies, a netem testbed and the measurement data.
Updates
langdetect to Rust bit for bit, and why Python 3.12 changes its answers.
langdetect with identical results, 40–52× faster, on PyPI and crates.io.
rouge-score on one core and up to 350× with score_batch, same scores.
score_batch.
rouge-score-rs on PyPI and the SyntaxSpirits/rouge metric for Hugging Face Evaluate.
seed, cell-update dropout and GRU zoneout.
SyntaxSpirits is maintained by Oleksandr Kholodniak, a software engineer and PhD researcher at the National Aerospace University “Kharkiv Aviation Institute” in Ukraine. The libraries come out of production Ruby work and research on evaluating language models.
Found a bug or need a feature? Open an issue on the library's GitHub page, or write to hello@syntaxspirits.dev.