IdeaCredIdeaCred

H-Ismael/ollamonym

74

Psuedo annonymizer balancing deterministic and llm based techniques.

What's novel

Psuedo annonymizer balancing deterministic and llm based techniques.

Code Analysis

13 files read · 4 rounds

A FastAPI service that detects PII entities in text using a hybrid pipeline (regex rules + local Ollama LLM), replaces them with deterministic session-stable tokens or realistic fakes, and supports reversible deanonymization via returned mappings.

Strengths

The hybrid detection pipeline with session-level alias propagation (AliasPostPass) and group-consistent fake generation (RealisticRenderer._project_group_fake) are genuinely thoughtful solutions to real problems — catching LLM-missed mentions and keeping related aliases visually consistent. The code is well-organized with clear separation of concerns across 10+ focused pipeline modules, and the deterministic HMAC-based token generation is cryptographically sound.

Weaknesses

The LLM integration is tightly coupled to Ollama's specific API, making provider swapping harder than the README's 'provider flexibility' claim suggests. The chunking strategy is basic (paragraph-based only), and the alias post-pass's n-gram overlap heuristic could produce false positives on common word combinations in longer texts.

Score Breakdown

Innovation
6 (25%)
Craft
69 (35%)
Traction
9 (15%)
Scope
75 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+2

Craft

Ci-1
Tests+3
Polish+1
Releases+3
Has License+5
Code Quality+24
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+3
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+7
Languages+8
Subsystems+5
Bloat Penalty+0
Completeness+7
Contributors+5
Authored Files+12
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

49

Contributors

1

Files

49

Active weeks

4

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License

Apache-2.0