The contractions/possessions removal (PR #71) causes unwanted behavior when it is invoked with a partial string which happens to end on a -s or -t.
In that case the - is removed which might be unwanted if this library is used for live input transformation, eg in https://github.com/directus/directus/issues/18352
For example the user starts to type article title which gets transformed to article-t as soon as the user types the t, which then incorrectly gets turned into articlet.
The contractions/possessions removal (PR #71) causes unwanted behavior when it is invoked with a partial string which happens to end on a
-s
or-t
.In that case the
-
is removed which might be unwanted if this library is used for live input transformation, eg in https://github.com/directus/directus/issues/18352 For example the user starts to typearticle title
which gets transformed toarticle-t
as soon as the user types thet
, which then incorrectly gets turned intoarticlet
.