Skip to content

Find Japanese names with privmask 0.5.0's NER model - #47

Merged
snaka merged 2 commits into
mainfrom
feat/privmask-0.5.0
Oct 5, 2026
Merged

snaka merged 2 commits into
mainfrom
feat/privmask-0.5.0

Conversation

@snaka

@snaka snaka commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bump privmask to 0.5.0 (minorVersion: 0.5.0). Hostnames, job names and English product names are no longer masked as personal names, and later mentions of a name already found are masked too.
  • Run privmask's Japanese name NER model alongside the on-device language model, so names are found without Apple Intelligence.
  • The model is tens of megabytes, so it is not bundled. As in the Raycast extension (Update privmask extension: privmask 0.5.0, name model and preview highlight raycast/extensions#31873), Bokashi uses the copy Homebrew installs with the privmask CLI, found by resolving /opt/homebrew/bin/privmask or /usr/local/bin/privmask with NERResources.directory. Without the CLI, NER is skipped silently and behaviour is unchanged.
  • The generated cask gains depends_on formula: "snaka/tap/privmask", so brew install --cask brings the model along. This takes effect from the next release.
  • NER runs off the main actor, is loaded once (and prewarmed when the editor opens), and fails open like the CLI. Findings from the NER model alone are drawn in purple in the debug overlay.

Test plan

  • Debug build succeeds; the .app contains no model
  • The Homebrew-installed model detects 佐藤 in 担当は佐藤さんです。 (privmask --json --no-model)
  • Signed Debug build, Apple Intelligence off: names in an imported screenshot (佐藤 健一, 田中, 山本美咲, a later 佐藤) are masked, the phone number too, and build-server-01 / nightly-deploy are left alone
  • Next release: the cask installs privmask as a dependency

🤖 Generated with Claude Code

snaka and others added 2 commits October 6, 2026 07:59
Bump privmask to 0.5.0 and run its Japanese name NER model alongside the
on-device language model, so names are found without Apple Intelligence.

The model is tens of megabytes, so it is not bundled. Like the Raycast
extension, Bokashi uses the copy Homebrew installs with the privmask CLI,
and skips NER silently when the CLI is absent. The cask now depends on the
privmask formula so that brew installs bring the model along.

NER runs off the main actor, and findings from it alone are drawn in
purple in the debug overlay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@snaka
snaka merged commit 6152795 into main Oct 5, 2026
2 checks passed
@snaka
snaka deleted the feat/privmask-0.5.0 branch October 5, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant