Releases: Zaid-maker/urdu-text-utils
Releases · Zaid-maker/urdu-text-utils
Release list
v0.2.0
What's New in v0.2.0
Documentation
- Add automated performance benchmarks workflow that runs on every push to main and release tags.
- Add Performance Benchmarks documentation page with real-world benchmark results for all major functions.
- Benchmark script now supports
--jsonoutput for automation and programmatic access. - Add automated benchmark results to GitHub Release notes on new releases.
Benchmark Results
| Function | Ops/sec | Time/op |
|---|---|---|
normalizeUrdu (short) |
65,598 | 0.015 ms |
normalizeUrdu (medium) |
20,955 | 0.048 ms |
normalizeUrdu (long) |
3,680 | 0.272 ms |
removeDiacritics (short) |
1,151,278 | 0.001 ms |
removeDiacritics (diacritics) |
248,738 | 0.004 ms |
foldUrdu (short) |
71,150 | 0.014 ms |
romanize (short) |
55,281 | 0.018 ms |
romanize (medium) |
9,937 | 0.101 ms |
romanToUrdu (short) |
808,669 | 0.001 ms |
romanToUrdu (medium) |
77,223 | 0.013 ms |
searchUrdu (100 items, exact) |
679 | 1.472 ms |
searchUrdu (100 items, fuzzy) |
196 | 5.106 ms |
sortUrdu (20 words) |
2,542 | 0.393 ms |
countWords (medium) |
105,625 | 0.009 ms |
countSentences (medium) |
114,779 | 0.009 ms |
analyzeUrdu (medium) |
14,777 | 0.068 ms |
splitWords (medium) |
95,488 | 0.010 ms |
splitSentences (medium) |
137,758 | 0.007 ms |
isUrdu (Urdu text) |
35,992 | 0.028 ms |
urduRatio (Urdu text) |
41,258 | 0.024 ms |
convertNumbers (short) |
553,281 | 0.002 ms |
stemUrdu (single word) |
83,588 | 0.012 ms |
stemUrduText (medium) |
8,864 | 0.113 ms |
formatUrduDate (now) |
167,935 | 0.006 ms |
timeAgoUrdu (2 hours ago) |
355,796 | 0.003 ms |
Install:
npm install urdu-text-utils@latestv0.1.10
What's New in v0.1.10
Transliteration
- Expanded
ROMAN_VARIANTSwith 200+ new entries covering common verb conjugations, nouns, food, body parts, nature, religion, and modern vocabulary.
Documentation
- Added real-time npm download stats (weekly/monthly) to docs homepage.
- Added Use Cases & Recipes guide page with real-world integration examples: search autocomplete, CMS processing, form validation, URL slugs, sorting, text analysis, date formatting, stop words, and number conversion.
CI/CD
- Merged
release.ymlandprerelease.ymlinto a single workflow that handles both stable and pre-release tags, fixing npm Trusted Publishing which only allows one workflow per publisher. - Added
.freebuff/to.gitignore.
Install:
npm install urdu-text-utils@latestPre-release:
npm install urdu-text-utils@alphav0.1.10-alpha.0
Pre-release v0.1.10-alpha.0. Install with:
npm install urdu-text-utils@alpha
v0.1.9
- Add rule-based Urdu Stemmer module (\stemUrdu, \stemUrduText, \getAffixes).
- Add morphological restorations for feminine plurals (لڑکیاں → لڑکی), hamza plurals (دعاؤں → دعا), and Arabic/sound plurals (تعلیمات → تعلیم).
- Add canonical prefix and suffix stripping with short root protection and exception handling.
- Add canonical constants \URDU_PREFIXES\ and \URDU_SUFFIXES.