0xNaN/ngrep
grep plus word embeddings
What's novel
grep plus word embeddings
Code Analysis
15 files read · 4 roundsA CLI tool that extends regular expressions with a semantic `~` operator, using word embeddings and cosine similarity to match text by meaning rather than literal string matching, built on a fork of fancy-regex with a custom binary embedding storage format.
Strengths
Clean, surgical integration of neural matching into a proven regex engine via trait-based abstractions (NeuralMatcher/NeuralMatcherFactory), with a well-designed mmap-backed binary storage format and proper separation between the regex engine, embedding model, and CLI layers.
Weaknesses
Limited test coverage for the neural matching path (no integration tests for `~` operator end-to-end), the `max_codepoints` hard limit of 32 is arbitrary and undocumented, and the per-token embedding lookup approach means multi-word semantic matching is not truly supported despite the `+` quantifier syntax.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
73
Contributors
1
Files
56
Active weeks
10
Repository
Language
Rust
Stars
6
Forks
0
License
—