Skip to content

Allow for capitalized inputs for commnds to return valid outputs #499

@andrewtavis

Description

@andrewtavis

Terms

Description

Something that should be finalized before the first release is that we currently are not allowing the user to pass capitalized values to all commands. An example of this is:

  • In the German keyboard the user selects the Scribe key at the top left and then translate
  • They type the word "Book" (note that "book" is in the database)
  • The result is that they're told the word isn't in Wikidata
  • Ideally we'd use the same method from Scribe-iOS
    • The capitalization of the input word is derived before the database is checked and saved in a variable
    • The input word is converted to lower case (except for German nouns)
    • This word is checked against the database
    • If the original word was capitalized, then the capitalization of the return value is returned
    • If the original word wasn't capitalized, then the normal return value is returned

Contribution

Happy to support the planing for implementation here and review a PR once one is opened! 😊

Metadata

Metadata

Labels

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions