Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.1.6

### Documentation
- Rewrote the pub.dev package description and keywords with terms developers actually search for, to improve discoverability.
- Removed the stale "What's New in 2.0.0" section from the README — already covered by Features/How it Works and the CHANGELOG.
- Added a pub.dev like / GitHub star callout to the README.

## 2.1.5

### Data
Expand Down
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

A high-performance Flutter package for filtering offensive language (profanity) and detecting phone numbers. Powered by the **Aho-Corasick** algorithm for `O(N)` single-pass scanning across 80+ languages and 55,000+ curated words.

> 💙 Find SafeText useful? A [like on pub.dev](https://pub.dev/packages/safe_text) or [star on GitHub](https://github.com/master-wayne7/safe_text) helps others discover it.

---

## Table of Contents

- [Table of Contents](#table-of-contents)
- [What's New in 2.0.0](#whats-new-in-200)
- [Features](#features)
- [Installation](#installation)
- [Quick Start](#quick-start)
Expand All @@ -42,17 +43,6 @@ A high-performance Flutter package for filtering offensive language (profanity)

---

## What's New in 2.0.0

- **Aho-Corasick Algorithm** — Near-instant multi-pattern search in `O(N)` complexity.
- **Up to 20x faster** than the legacy regex-loop approach.
- **80+ languages** — Full human-readable enum names (e.g., `Language.hindi`, `Language.spanish`).
- **Modular API** — `SafeTextFilter` for profanity, `PhoneNumberChecker` for phone numbers.
- **Memory efficient** — Single-pass string building via `StringBuffer`.
- **Leet-speak normalization** — Catches bypasses like `f@ck` or `b4d` with zero extra overhead.

---

## Features

- Scans thousands of bad words in a single pass of the input text.
Expand All @@ -77,7 +67,7 @@ Or manually add it to your `pubspec.yaml`:

```yaml
dependencies:
safe_text: ^2.1.5
safe_text: ^2.1.6
```

Then run:
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: safe_text
description: A Flutter package for filtering out bad words from text inputs and detecting phone numbers in various formats including multiplier words.
version: 2.1.5
description: A fast Flutter profanity & swear word filter with phone number detection, powered by Aho-Corasick. Supports 80+ languages and 55,000+ curated bad words.
version: 2.1.6
homepage: https://github.com/master-wayne7/safe_text
repository: https://github.com/master-wayne7/safe_text
issue_tracker: https://github.com/master-wayne7/safe_text/issues
Expand Down Expand Up @@ -44,18 +44,18 @@ topics:
- flutter

keywords:
- safe-text
- swear-words
- profanity-filter
- bad-words
- content-moderation
- phone-number
- text-filter

license: MIT
maintainers:
- master-wayne7

screenshots:
- description: 'SafeText 2.0 Banner'
- description: "SafeText 2.0 Banner"
path: assets/image/safeText.png

support:
Expand Down
Loading