Skip to content

describegpt: auto-detect language in chat (--prompt) mode #3190

Description

@jqnatividad

Do this by setting --language option default to "autodetect" with a default detection threshold of 80 percent.

It runs the language detection algorithm against the provided --prompt question.

If --language is set to a number, it's the required confidence threshold before choosing the detected language.
If an integer - represents whole number threshold (0-100).
If its a float - (0.0 to 1.00)

If it's a string, its the requested language or dialect (e.g. Spanish, French, German, Mandarin, Code Talker Navajo, Klingon, Valley Girl English, Taglish, Pig Latin, Shakespearean English, etc.) :)

Use the whatlang crate we already use for the apply command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FAIRificationenables blazing-fast, "automagical" FAIRificationenhancementNew feature or request. Once marked with this label, its in the backlog.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions