# vi3k6i5/flashtext

Extract Keywords from sentence or Replace keywords in sentences.

Repository: https://github.com/vi3k6i5/flashtext
Canonical: https://ross.abutalabs.com/products/flashtext
Language: Python
License: MIT
License Family: permissive
Topics: search-in-text, keyword-extraction, nlp, word2vec, data-extraction
Last push: 2025-04-13T22:35:59+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 16, release rhythm 35, longevity 100
- inputs: {"age_days": 3305, "days_push": 507, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5712, forks 597 (observed 2026-08-28T04:09:28.173835+00:00)

## What it is
FlashText is a Python library for fast keyword extraction and replacement in sentences, based on the FlashText algorithm. It uses a trie-like KeywordProcessor to match thousands of keywords at speeds independent of the number of keywords.

## Use cases
- extract keywords from sentences in python
- replace multiple keywords in text quickly
- normalize entity names in text like city names
- find keyword spans with character positions
- fast dictionary-based named entity matching

## When to choose
- you need to match or replace thousands of keywords faster than regex
- you want case-insensitive or case-sensitive keyword matching with optional span info
- you need to attach extra metadata to matched keywords

## When to avoid
- you need fuzzy or partial word matching rather than exact keyword matches
- you need full regular expression pattern support
- you need actively developed features beyond keyword extraction and replacement

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, parser, search-engine
- domain: data-science, developer-tools
- platform: python, cross-platform
- tags: keyword-extraction, keyword-replacement, ahocorasick-alternative, text-processing, flashtext-algorithm, natural-language-processing

## Member repositories
- vi3k6i5/flashtext (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:28.173835+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:53:31.094954+00:00, confidence not recorded.
  - readme: https://github.com/vi3k6i5/flashtext (fetched 2026-08-28T04:09:28.173835+00:00, sha de795e376808)
  - registry_pypi: https://pypi.org/pypi/flashtext/json (fetched 2026-08-29T08:49:00.789344+00:00, sha e277021eb09d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
