Skip to content

Commit

Permalink
Merge pull request #148 from grammatek/abn-fix-large-digits
Browse files Browse the repository at this point in the history
Abn fix large digits
  • Loading branch information
lumpidu authored Jan 25, 2024
2 parents 31d9e3b + f0cecec commit 9593372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ public static List<CategoryTuple> getTuples() {
if (!TUPLES.isEmpty())
return TUPLES;

TUPLES.add(new CategoryTuple(NumberPatterns.TNS_PTRN + "10" + NumberPatterns.THSNDS_AND_PTRN_CARDINAL + NumberPatterns.DEC_PTRN_ORDINAL,
NormalizationDictionaries.MATCH_ANY, NumberHelper.TEN_THOUSANDS, "tíu þúsund og"));
TUPLES.add(new CategoryTuple(NumberPatterns.TNS_PTRN + "10" + NumberPatterns.THSNDS_AND_PTRN_CARDINAL,
NormalizationDictionaries.MATCH_ANY, NumberHelper.TEN_THOUSANDS, "tíu þúsund og"));
TUPLES.add(new CategoryTuple(NumberPatterns.TNS_PTRN + "10" + NumberPatterns.THSNDS_PTRN_AFTER + NumberPatterns.DEC_PTRN_ORDINAL,
NormalizationDictionaries.MATCH_ANY, NumberHelper.TEN_THOUSANDS, " tíu þúsund"));
TUPLES.add(new CategoryTuple(NumberPatterns.HNDRDS_PTRN + "100" + NumberPatterns.THSNDS_AND_PTRN_CARDINAL + NumberPatterns.DEC_PTRN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ private Map<String, String> getDigits() {
digits.put("2.350.000", "tvær milljónir þrjú hundruð og fimmtíu þúsund .");
digits.put("2.350.123", "tvær milljónir þrjú hundruð og fimmtíu þúsund eitt hundrað tuttugu og þrjú .");
digits.put("2.357.895", "tvær milljónir þrjú hundruð fimmtíu og sjö þúsund átta hundruð níutíu og fimm .");
// TODO: now the difficult ones
digits.put(" 10.000.005", "tíu milljónir og fimm .");
digits.put(" 10.000.050", "tíu milljónir og fimmtíu .");
digits.put(" 10.007.050", "tíu milljónir sjö þúsund og fimmtíu .");
digits.put(" 13.080.050", "þrettán milljónir áttatíu þúsund og fimmtíu .");
digits.put(" 13.005.025", "þrettán milljónir fimm þúsund tuttugu og fimm .");
return digits;
}

Expand Down

0 comments on commit 9593372

Please sign in to comment.