Skip to content

Commit

Permalink
[.NET] Hindi DateTime Set spec additions (#2167)
Browse files Browse the repository at this point in the history

Co-authored-by: LionbridgeCS2 <[email protected]>
  • Loading branch information
aitelint and LionbridgeCS2 authored Jun 16, 2020
1 parent 561c431 commit 3e77064
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Specs/DateTime/Hindi/SetExtractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@
}
]
},
{
"Input": "मैं ऐनुअली एक बार जाता हूं",
"NotSupportedByDesign": "javascript,python,java",
"Results": [
{
"Text": "ऐनुअली एक बार",
"Type": "set",
"Start": 4,
"Length": 13
}
]
},
{
"Input": "मैं हर दो दिन में जाती हूं",
"NotSupportedByDesign": "javascript,python,java",
Expand All @@ -83,6 +95,18 @@
}
]
},
{
"Input": "मैं प्रत्येक दूसरे दिन जाती हूं",
"NotSupportedByDesign": "javascript,python,java",
"Results": [
{
"Text": "प्रत्येक दूसरे दिन",
"Type": "set",
"Start": 4,
"Length": 18
}
]
},
{
"Input": "मैं हरेक तीन हफ़्तों में जाऊँगा",
"NotSupportedByDesign": "javascript,python,java",
Expand All @@ -95,6 +119,18 @@
}
]
},
{
"Input": "मैं हर तीसरे हफ़्ते जाती हूं",
"NotSupportedByDesign": "javascript,python,java",
"Results": [
{
"Text": "हर तीसरे हफ़्ते",
"Type": "set",
"Start": 4,
"Length": 14
}
]
},
{
"Input": "मैं रोज़ शाम 3 बजे जाऊँगा",
"NotSupportedByDesign": "javascript,python,java",
Expand Down Expand Up @@ -313,6 +349,7 @@
},
{
"Input": "क्या मैं 09th मई को 2 रातों के लिए बुकिंग करवा सकता हूँ ",
"Comment": "(Can I do a booking for the 09th of May for 2 nights?). Hindi does not use plurals of weekdays such as 'Mondays', 'mornings', 'nights'",
"NotSupported": "dotnet",
"NotSupportedByDesign": "javascript,python,java",
"Results": [
Expand Down
26 changes: 26 additions & 0 deletions Specs/DateTime/Hindi/SetParser.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
"Context": {
"ReferenceDateTime": "2017-09-27T12:25:54.2909444+03:00"
},
"Comment": "The input literally translates to 'I'll leave each in two days' and 'in two days' is processed as Date instead of Duration",
"NotSupported": "dotnet",
"NotSupportedByDesign": "javascript,python,java",
"Results": [
Expand All @@ -197,6 +198,7 @@
"Context": {
"ReferenceDateTime": "2017-09-27T12:25:54.2959472+03:00"
},
"Comment": "The input literally translates to 'I'll leave each in three weeks' and 'in three weeks' is processed as Date instead of Duration",
"NotSupported": "dotnet",
"NotSupportedByDesign": "javascript,python,java",
"Results": [
Expand Down Expand Up @@ -624,5 +626,29 @@
"Length": 8
}
]
},
{
"Input": "मैं हर संडे को जाउंगा",
"Context": {
"ReferenceDateTime": "2017-09-27T12:25:54.4710739+03:00"
},
"NotSupportedByDesign": "javascript,python,java",
"Results": [
{
"Text": "हर संडे",
"Type": "set",
"Value": {
"Timex": "XXXX-WXX-7",
"FutureResolution": {
"set": "Set: XXXX-WXX-7"
},
"PastResolution": {
"set": "Set: XXXX-WXX-7"
}
},
"Start": 4,
"Length": 7
}
]
}
]

0 comments on commit 3e77064

Please sign in to comment.