Skip to content
Hayden edited this page Jun 16, 2021 · 9 revisions

Transformation Examples

Dashes

Replace two dashes with an en dash

--

Replace three dashes with an em dash

---

Replace spaced dash with an em dash, replaceSpacedDashesWithEmDash (disabled by default)

Please call my lawyer - Richard SmithPlease call my lawyer—Richard Smith


Ellipsis

Replace multiple periods with a single ellipsis

Sentence ... another sentenceSentence … another sentence (3 or more periods)
Sentence ending...Sentence ending… (3 or more periods)

Replace two periods between words (spaces) with an ellipsis

Sentence .. another sentenceSentence … another sentence

Replace multiple periods/ellipsis combinations with a single ellipsis

Sentence ending….....Sentence ending…
Sentence ending….…Sentence ending…
Sentence ending.….....Sentence ending…

Fix spacing when ellipsis is used around commas

We sell apples, oranges, …, bananas.We sell apples, oranges, …, bananas.
We sell apples, oranges,…, bananas.We sell apples, oranges, …, bananas.
We sell apples, oranges,… , bananas.We sell apples, oranges, …, bananas.
We sell apples, oranges, … , bananas.We sell apples, oranges, …, bananas.


Single Quotes

’n’ contractions

Fish 'n' ChipsFish ’n’ Chips

Contracted word beginnings

cause, em, mid, midst, mongst, prentice, round, sblood, ssdeath, sfoot, sheart, shun, slid, slife, slight, snails, strewth, til, tis, twas, tween, twere, twill, twixt, twould

'cause’cause
'til’til

Contractions/apostrophes

I'mI’m
Hers'Hers’
Expo '70Expo ’70
69'ers69’ers
iPhone'siPhone’s

Single Quote Pairs

Occurs following the apostrophe replacements listed above. Single-quoted expressions are recursively found by looking for ' pairs with the shortest distance between them.

' or depending on context


Double Quotes

" or depending on context