Skip to content

0.8.0 breaks word on apostrophe #1

@altinp

Description

@altinp

The behavior change from 0.7.2 to 0.8.0 seems wrong to me:

in 0.8.0

from uniseg.wordbreak import words

list(words("don't"))
['don', "'", 't']  # <-------
list(words("don’t"))
['don’t']

in 0.7.2

from uniseg.wordbreak import words

list(words("don't"))
["don't"]

list(words("don’t"))
['don’t']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions