Skip to content

Commit

Permalink
[SV Currency] Fix ATT recognized as a currency unit in the wrong cont…
Browse files Browse the repository at this point in the history
…ext (#2891) (#2938)

Co-authored-by: aitelint <[email protected]>
  • Loading branch information
aitelint and aitelint authored May 5, 2022
1 parent effa164 commit a8e81a3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ public static class NumbersWithUnitDefinitions
};
public static readonly IList<string> AmbiguousCurrencyUnitList = new List<string>
{
@"att",
@"din.",
@"kiwi",
@"kina",
Expand Down
1 change: 1 addition & 0 deletions Patterns/Swedish/Swedish-NumbersWithUnit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ CurrencyPrefixList: !dictionary
AmbiguousCurrencyUnitList: !list
types: [ string ]
entries:
- att
- din.
- kiwi
- kina
Expand Down
21 changes: 21 additions & 0 deletions Specs/NumberWithUnit/Swedish/CurrencyModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -600,5 +600,26 @@
"End": 5
}
]
},
{
"Input": "Se till att rymma västkustens tidszon",
"NotSupported": "javascript,python,java",
"Results": []
},
{
"Input": "vi har 100 Att",
"NotSupported": "javascript, python, java",
"Results": [
{
"Text": "100 att",
"TypeName": "currency",
"Resolution": {
"value": "100",
"unit": "Att"
},
"Start": 7,
"End": 13
}
]
}
]

0 comments on commit a8e81a3

Please sign in to comment.