From: Steven Baltakatei Sandoval Date: Fri, 26 Jan 2024 00:21:36 +0000 (+0000) Subject: fix(unitproc/bkt-replace_apos):Handle possessive 's and s' X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/e424b71045e5259dcdb9f28e70864a7f96499ef9 fix(unitproc/bkt-replace_apos):Handle possessive 's and s' - chore(unitproc/bkt-replace_apostrophes):Move to unitproc/bkt-replace_apos --- diff --git a/unitproc/bkt-replace_apostrophes b/unitproc/bkt-replace_apos similarity index 97% rename from unitproc/bkt-replace_apostrophes rename to unitproc/bkt-replace_apos index 4e6c95b..1ba50fc 100644 --- a/unitproc/bkt-replace_apostrophes +++ b/unitproc/bkt-replace_apos @@ -8,7 +8,7 @@ function replace_apostrophes() { # Input: stdin # arg1 file path # Output: stdout - # Version: 1.0.0 (BK-2020-03) + # Version: 1.1.0 (BK-2020-03) # Depends: GNU sed 4.8 # Check input @@ -64,7 +64,8 @@ function replace_apostrophes() { -e "s/(she|She|SHE)'(d|D|ll|LL)'(ve|VE)/\1ʼ\2ʼ\3/g" \ -e "s/(she|She|SHE)'(d|D|ll|LL|s|S)/\1ʼ\2/g" \ -e "s/(shan|Shan|SHAN)'(t|T)/\1ʼ\2/g" \ - -e "s/'(s\b)/ʼ\1/g" \ + -e "s/'(s|S)\b/ʼ\1/g" \ + -e "s/(s|S)'( |$)/\1ʼ\2/g" \ -e "s/(oughtn|Oughtn|OUGHTN)'(t|T)'(ve|VE)/\1ʼ\2ʼ\3/g" \ -e "s/(oughtn|Oughtn|OUGHTN)'(t|T)/\1ʼ\2/g" \ -e "s/(o|O)'(clock|CLOCK)/\1ʼ\2/g" \