sqlite3_arabic_phonetic_fuzzy_trigram_flutter 0.0.1
sqlite3_arabic_phonetic_fuzzy_trigram_flutter: ^0.0.1 copied to clipboard
SQLite FTS5 Arabic Phonetic Fuzzy Trigram Tokenizer
sqlite3_arabic_phonetic_fuzzy_trigram_flutter #
To use sqlite3-arabic-phonetic-fuzzy-trigram in Flutter.
sqlite3-arabic-phonetic-fuzzy-trigram #
A custom SQLite FTS5 tokenizer designed for Arabic and Latin text with diacritics support, phonetic matching, and fuzzy search capabilities.
Features #
Arabic Text Support #
- Diacritic-insensitive search: Matches Arabic text with or without diacritics (tashkeel)
الحمدmatchesٱلْحَمْدُ
- Character normalization: Normalizes variant Arabic characters
- Alif variants (أ إ آ ٱ) → ا
- Yeh variants → ى
- Teh marbuta handling
- Unicode-aware trigrams: Enables substring matching within Arabic words
حمدmatchesالحمد
Latin/Transliteration Support #
- Latin diacritic normalization: Removes diacritics from Latin characters
ṣalāh→salah
- Phonetic hashing: Fuzzy matching for Latin text using phonetic patterns
salahmatchessalaahquranmatcheskuran
- Byte-based trigrams: Partial/fuzzy matching for Latin words
Search Capabilities #
- Prefix search:
الح*matchesالحمد - Exact match: Direct token matching
- Fuzzy match: Phonetic similarity for Latin text
- Substring match: Via trigram tokens
Getting Started #
First, add sqlite3_arabic_phonetic_fuzzy_trigram_flutter as a dependency in your pubspec.yaml file.
dependencies:
sqlite3_arabic_phonetic_fuzzy_trigram_flutter: ^0.0.1
The add this in ios/Podfile & macos/Podfile
source 'https://github.com/GreentechApps/cocoapods-specs.git'
source 'https://cdn.cocoapods.org/'
Also run this command to add GTAL's pods specs repo
pod repo add greentech-specs https://github.com/GreentechApps/cocoapods-specs.git
Don't forget to flutter pub get.