quantible 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,11 +21,12 @@
21
21
 
22
22
  Quantible handles a wide spectrum of numerical and symbolic expressions, converting them into natural, spoken-word English.
23
23
 
24
- ### 🔢 Numbers & Decimals
24
+ ### 🔢 Numbers, Decimals & Math
25
25
  - `123` -> "one hundred twenty-three"
26
- - `1,234,567` -> "one million two hundred thirty-four thousand five hundred sixty-seven"
27
26
  - `1.5` -> "one point five"
28
- - `-45.67` -> "negative forty-five point sixty-seven"
27
+ - `5 - 10` -> "five minus ten"
28
+ - `-5 + 10` -> "negative five plus ten"
29
+ - `1,234,567` -> "one million two hundred thirty-four thousand five hundred sixty-seven"
29
30
 
30
31
  ### 💰 Currencies (Symbol & Code)
31
32
  - `$1,000` -> "one thousand dollars"
@@ -46,10 +47,12 @@ Quantible handles a wide spectrum of numerical and symbolic expressions, convert
46
47
  - `_5` -> "underscore five"
47
48
  - `file_name_v2` -> "file underscore name underscore v two"
48
49
 
49
- ### 🔣 Abbreviations & Symbols
50
+ ### 🔣 Abbreviations & Symbols (Normalization)
50
51
  - `A & B` -> "A and B"
51
52
  - `e.g.` -> "example given"
52
53
  - `i.e.` -> "that is"
54
+ - `test@example.com` -> "test at example dot com" (Email normalization)
55
+ - `www.hello.com` -> "double you double you double you dot hello dot com" (Website normalization)
53
56
  - `Item #1` -> "Item hash one"
54
57
 
55
58
  The `autoReplaceAllMatches` function demonstrates the power of Quantible by converting all quantities within a text:
@@ -57,7 +60,7 @@ The `autoReplaceAllMatches` function demonstrates the power of Quantible by conv
57
60
  **Input Sentence:**
58
61
  > "The new SSD offers 2TB capacity, costs $199.99, and runs at 5,400 RPM."
59
62
 
60
- **Output Sentence:**
63
+ **Output Sentence (after `autoReplaceAllMatches`):**
61
64
  > "The new SSD offers two terabytes capacity, costs one hundred ninety-nine dollars and ninety-nine cents, and runs at five thousand four hundred revolutions per minute."
62
65
 
63
66
  ## Installation
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quantible",
3
3
  "description": "A versatile library for extracting and converting numerical values, units, currency, and mathematical expressions into their spoken word equivalents.",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",