Skip to content

Commit

Permalink
patch overflow for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinay1997 committed Jun 11, 2024
1 parent bf46309 commit 6296506
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Tests/WhisperKitTests/Evaluate/NormalizeEn.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,16 @@ class EnglishNumberNormalizer{
return (name.replacingOccurrences(of: "y", with: "ieth"), (value, "th"))
})
let tensSuffixed = tensPlural.merging(tensOrdinal) { $1 }


//TODO: Figure out a solution for the overflow.
let multipliers: [String: Int] = [
"hundred": 100,
"thousand": 1_000,
"million": 1_000_000,
"billion": 1_000_000_000,
"trillion": 1_000_000_000_000,
"quadrillion": 1_000_000_000_000_000,
"quintillion": 1_000_000_000_000_000_000
// "trillion": 1_000_000_000_000,
// "quadrillion": 1_000_000_000_000_000,
// "quintillion": 1_000_000_000_000_000_000
// "sextillion": 1_000_000_000_000_000_000_000,
// "septillion": 1_000_000_000_000_000_000_000_000,
// "octillion": 1_000_000_000_000_000_000_000_000_000,
Expand Down

0 comments on commit 6296506

Please sign in to comment.