question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[* Number] Output isn't consistent across cultures

See original GitHub issue

When using the NumberModel across multiple cultures in a single application, it can be quite confusing. For example; in Europe the decimal seperator is a comma (,) instead of a dot (.). This is parsed correctly by the Model, however in the output value it is also reflected.

It this something which should be changed in Recognizers-Text? Or something that should be added to the documentation to avoid confusion.

> LUIS interprets the variations in user utterances and returns consistent numeric values.

English

 {
    "Input": "4.800",
    "Results": [
      {
        "Text": "4.800",
        "TypeName": "number",
        "Resolution": {
          "subtype": "decimal",
          "value": "4.8"
        }
      }
    ]
  },

German

{
    "Input": "2.000,352",
    "NotSupportedByDesign": "python",
    "NotSupported": "javascript",
    "Results": [
      {
        "Text": "2.000,352",
        "TypeName": "number",
        "Resolution": {
          "value": "2000,352"
        }
      }
    ]
  }

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tellarincommented, Apr 30, 2021

Yes, all values should use a consistent format (. as decimal separator). This is a known issue and a fix is on the way. Consumers of the packages need time to adapt to potential breaking changes. Thanks for following up on this!

!! This has been cancelled as the issue was considered a breaking change !!

0reactions
tellarincommented, Apr 30, 2021

Issue still pending as changing the default output was considered a breaking change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Culture, Cross-Role Consistency, and Adjustment
Cross-role consistency in trait ratings was evident in all cultures, supporting trait perspectives. Cultural comparisons of mean consistency provided support ...
Read more >
Cross-Cultural Differences in the Neural Correlates ...
Research suggests that culture influences how people perceive the world, which extends to memory specificity, or how much perceptual detail ...
Read more >
How To Say “This Is Crap” In Different Cultures
Another type of downgrader is a deliberate understatement, such as “We are not quite there yet” when you really mean “This is nowhere...
Read more >
Dealing with a Different Sense of Urgency Across Cultures
One of the biggest frustrations when working across cultures is a different sense of urgency, follow-through, and deadlines.
Read more >
Big Five personality traits and culture
The Big Five personality traits are Openness, Conscientiousness, Extraversion, Agreeableness ... Some research shows that the Big Five holds up across cultures even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found