Skip to content

make detect_language return Option<Lang> #16

Description

@lmezg

Currently, this function can only return one of 16 supported languages. what if the input text is not one of them ?

pub fn detect_language(text: &str) -> Lang;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions