Skip to content

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

@americano212

Description

@americano212

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'
}

Metadata

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