ericcornelissen/wordrow

The prefix/suffix notation functionality does not always work as expected in corner cases

ericcornelissen opened this issue · 0 comments

Feature Request

  • wordrow version: v0.4.0-beta

Description

The prefix/suffix notation is sometimes a bit too greedy and works for most cases but not all. Ideally there would be some way to improve the syntax in a straightforward way so as to resolve these kinds of issues. Some examples of problems are listed below.

Example 1

Following the ready-to-use example mapping file to convert British English to American English in #68, one may want to replace all words ending in "-ize" (America) by "-ise" (British). However, there are some words for which this causes problems, e.g. "size".

Example 2

Again, following the ready-to-use example mapping file to convert British English to American English in #68, one may want to replace all words ending in "-led" (America) by "-lled" (British). However, this would replace any word that is already written according to the British spelling to be changed into "-llled" (three 'L's).

Proposal

TBD, suggestions are welcome