DevTools Logo

On-Device NER Tagger

On-Device NER Tagger

Highlight people, organisations, locations and dates in text — edit spans and export JSON or IOB2 locally.

Runs in your browser

Deterministic gazetteer and pattern tagger running entirely in the browser. No model download, no API and no upload — advisory highlighting only, never a substitute for deterministic PII redaction.

Try an example

Document

1 line · 114 chars

Entities

7 spans · 1 chunks
PER: 2ORG: 2LOC: 2MISC: 1DATE: 0
visited in on March 5, 2026. from met her in and spoke .
[
  {
    "text": "Alice Smith",
    "label": "PER",
    "start": 0,
    "end": 11,
    "score": 0.92,
    "source": "rule"
  },
  {
    "text": "Google",
    "label": "ORG",
    "start": 20,
    "end": 26,
    "score": 0.95,
    "source": "rule"
  },
  {
    "text": "New York",
    "label": "LOC",
    "start": 30,
    "end": 38,
    "score": 0.94,
    "source": "rule"
  },
  {
    "text": "Emma Brown",
    "label": "PER",
    "start": 57,
    "end": 67,
    "score": 0.92,
    "source": "rule"
  },
  {
    "text": "OpenAI",
    "label": "ORG",
    "start": 73,
    "end": 79,
    "score": 0.95,
    "source": "rule"
  },
  {
    "text": "Paris",
    "label": "LOC",
    "start": 91,
    "end": 96,
    "score": 0.94,
    "source": "rule"
  },
  {
    "text": "French",
    "label": "MISC",
    "start": 107,
    "end": 113,
    "score": 0.85,
    "source": "rule"
  }
]

Paste a document and get colour-coded entity spans for people, organisations, locations and miscellaneous entities. Spans use UTF-16 character offsets so they can be retyped, resized, split or deleted in the editor; you can also add a selection manually and mark it as yours. Confidence filtering, optional heuristic DATE tagging and overlap resolution make the output reproducible. Export the spans as JSON, IOB2 token tags with forward snapping at token boundaries, or inline annotated text. Tagging is a deterministic gazetteer-and-pattern engine in your browser: it downloads no model, calls no API and uploads no text. It is advisory highlighting, not safety-critical redaction.

  • News paragraph: The tagger marks Alice Smith as PER, Google as ORG, New York as LOC and French as MISC.
  • Export for training: IOB2 export snaps a span ending mid-token forward so each token gets a deterministic B-/I-/O tag.
  • Manual fix: Manual edits are marked as such and take precedence over the detector's original span.

Examples

News paragraph

Input
Alice Smith visited Google in New York and spoke French.
Output
PER Alice Smith · ORG Google · LOC New York · MISC French

Gazetteer entries and capitalised patterns are combined, then de-overlapped by score.

IOB2 for training

Input
Alice Smith met Emma Brown.
Output
Alice B-PER / Smith I-PER / met O / Emma B-PER / Brown I-PER

Tokenisation is whitespace-based; offsets stay authoritative for manual edits.

Manual correction

Input
Click span → change label to ORG → split
Output
Two marked manual spans replacing the detector output

Manual provenance survives export so reviewers can see what was corrected.

About this tool

The On-Device NER Tagger highlights people, organisations, locations and miscellaneous entities in pasted text. It uses a curated gazetteer and pattern engine in your browser — no model download, no API key, no upload — and exposes every detected span as an editable object with authoritative character offsets.

Click a highlighted span to change its label, adjust its start and end, split it, or delete it. You can also select text in the annotated view and add a manual span, which is marked as such. Overlapping detections are resolved by confidence, and long documents are scanned in overlapping chunks with offset-correct spans and a boundary warning.

Export options cover the formats people actually need downstream: JSON spans with scores and provenance, IOB2 token tags with a documented forward-snapping rule, and inline annotated text. DATE detection is available as an explicitly flagged heuristic. This is advisory annotation, not deterministic PII redaction.

What this tool does not do

  • No transformer inference and no learned model — detection is gazetteer and regex based.
  • English-centric vocabulary; non-English names may be missed.
  • Long texts are chunked, so entities spanning a chunk boundary may need manual fixes.
  • Not a redaction or compliance tool.

How to use this tool

  1. Paste a document

    Add text up to a practical browser limit; entities are detected immediately with UTF-16 offsets.

  2. Tune detection

    Set a confidence threshold, toggle adjacent merging, and optionally enable heuristic DATE tags.

  3. Fix spans

    Click an entity to edit its type or boundaries, split it, or delete it; select text to add a manual span.

  4. Export

    Switch between JSON, IOB2 and annotated text, then copy or download the result.

Use cases

Annotation bootstrapping

Pre-label a small dataset and export IOB2 for a training pipeline.

Offline document review

Scan sensitive documents locally and highlight names and places without an API.

Teaching NER

Show span offsets, overlap resolution and tag formats with no hidden model.

Export formats

FormatShape
JSON[{text, label, start, end, score, source}] with source rule/heuristic/manual
IOB2One token and B-/I-/O tag per line, separated by a tab
Annotated textInline [LABEL: text] markers for quick human review
OffsetsUTF-16 string indices, directly usable with slice()
IOB2 snappingA span ending mid-token includes that token; B- at first token, I- afterwards

Heuristic DATE spans are marked in JSON so downstream consumers can filter them out.

Common mistakes

Mistake:Treating tags as complete recall.

Fix:A gazetteer misses unseen names; use it as a first pass and review manually.

Mistake:Using this for safety-critical PII removal.

Fix:Use a deterministic redactor for that; neural or heuristic tagging is advisory.

Mistake:Comparing UTF-16 offsets to byte offsets.

Fix:JS slice indices are UTF-16 code units; convert explicitly for byte-based systems.

Mistake:Trusting heuristic DATE tags as model output.

Fix:They are regex-based and marked with source=heuristic in exports.

Frequently asked questions

Does this download a BERT model?

No. The tagger is a deterministic gazetteer and pattern engine written in plain JavaScript, so there is no model file, no WASM runtime and no network request. You can use it offline immediately. The trade-off is recall: common names, organisations and places are recognised, but unseen proper nouns may be missed and should be added manually.

Which entity types are detected?

The default labels are PER (people), ORG (organisations), LOC (locations) and MISC (languages, nationalities, events and email addresses). You can optionally enable DATE, which is explicitly labelled as a regex heuristic rather than a learned prediction. Heuristic spans are marked with source=heuristic in the JSON export.

Can I fix a wrong span?

Yes. Click any highlighted span to open the editor: change the label, type exact start and end offsets, split the span in two, or delete it. Select text in the annotated view and click Add selection to insert a manual span. Manual edits carry source=manual in the export so reviewers can see what changed.

What export formats are available?

JSON spans ({text, label, start, end, score, source}), IOB2 token tags (one token and B-/I-/O label per tab-separated line), and inline annotated text with [LABEL: text] markers. IOB2 uses whitespace tokenisation and forward snapping: a span ending inside a token includes that whole token, so the output is deterministic.

How are long documents handled?

Text longer than the chunk size is scanned in overlapping segments with a 200-character overlap. Detections are shifted back to global offsets and de-overlapped by confidence. The tool shows a chunk-count warning because an entity crossing a chunk boundary may be split and need a manual fix.

Is this safe for PII redaction?

No. It is advisory highlighting for review and annotation, not a compliance control. Deterministic regex redaction is the right tool for safety-critical removal. Your text stays in the browser tab, but the detector will not guarantee that every sensitive string is found.

References & standards