Skip to content

ensinArr should return longest match #2

Description

@dmarman

function endsinArr($word, $suffixes) {

as in the original algorithm is explained, this function should return the longest match/suffix.

This function will return the first suffix it finds which could be shorter that the one it should outputs. This makes failure in lot of words.

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