Skip to content

make detect_language return Option<Lang> #16

@lmezg

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;

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