Skip to content

Feature request: levenshtein with multibyte support #10180

Closed
@tztztztz

Description

@tztztztz

Description

Please, could you make mb_levenshtein function with multibyte support, so substituting for example 'a' with 'ą' would produce 1 instead of 2 in current non-multibyte levenshtein function?

There are implementations of Levenshtein alghoritm in pure php that support multibyte characters, but they are much slower that buit-in function written in C.

When you have to compare a word with whole dictionary containing millions of words it makes significant difference.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions