Skip to content

singularize("-ous") return wrong result. #71

Open
@americano212

Description

The singularize function causes many exceptions.
Words that end in "-ous" are usually adjectives, and most of the time they are not plural.
However, there is no way to handle the exception cleanly.

It seems bad to call '_irregular', which is a private function like this.

def add_singularize_irregular(SINGULARIZE_IGNORE: set[str]) -> None:
    for ignore_singularize in SINGULARIZE_IGNORE:
        _irregular(ignore_singularize, ignore_singularize)

SINGULARIZE_IGNORE = {
    'ambitious',
    'ovious',
    'dangerous'
}

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions