Code Monkey home page Code Monkey logo

Comments (4)

sidharthramesh avatar sidharthramesh commented on September 1, 2024 1

Works now

from hermes.

wardle avatar wardle commented on September 1, 2024

It's using java's idea of the default locale in order to choose which language reference set(s) to use in order to choose the preferred synonym to be stored in the cache that is the search index used for autocompletion. Arguably, it shouldn't fail like that but instead flag an error and point out you need to provide a locale to use upfront, or fallback to using "en-US". I have already committed some changes to permit explicit locale choice at the command-line. I will create a new release, if that helps - but in the meantime you could set the locale at the command line. The other option is that I include en-IN in the list of known locales and you tell me which language reference sets to use for India. Are there any specific for India, or do you use UK or US? I'd value your opinion.

from hermes.

sidharthramesh avatar sidharthramesh commented on September 1, 2024

Yup. I figured that out after looking at the code. It works after I went into my system settings and changed my locale to en-US! Indian Medical Terminologies are based more around UK terms than US, an explicit option would be best.

In the current version v0.8.0 can I pass the locale via a command-line flag or env variable?

from hermes.

wardle avatar wardle commented on September 1, 2024

Try v0.8.1 676f3d8 - you can now specify --locale as an option for index creation to override your system default, and it will fallback to en-US which I think is a reasonable default.

Also see

{"en-gb" [999001261000000100 ;; NHS realm language (clinical part)
for the current list of "known" languages, which is incomplete. As I wasn't permitted to download the different international releases, I haven't been able to test or indeed populate this language mapping. I can easily add a suitable priority list of refset identifiers for "en-IN" which could use UK and US as a fallback.

from hermes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.