From afbf3b76c15f8e183a5bc9217c565bd06d757404 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 14 Jun 2024 15:43:08 +0100 Subject: [PATCH] add --- styles/custom/LatinAbbreviations.yml | 8 ++------ styles/custom/Repitition.yml | 8 ++++++-- styles/custom/Typos.yml | 9 ++------- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/styles/custom/LatinAbbreviations.yml b/styles/custom/LatinAbbreviations.yml index eb49fe7add9..d3ecf15df08 100644 --- a/styles/custom/LatinAbbreviations.yml +++ b/styles/custom/LatinAbbreviations.yml @@ -9,9 +9,5 @@ swap: - etc.: and so on - N.B.: Note -edit: - - 's/e.g./for example/g' - - 's/i.e./for example/g' - - 's/i.e./that is/g' - - 's/etc./and so on/g' - - 's/N.B./Note/g' +action: + name: replace diff --git a/styles/custom/Repitition.yml b/styles/custom/Repitition.yml index afd02730433..2708a834559 100644 --- a/styles/custom/Repitition.yml +++ b/styles/custom/Repitition.yml @@ -8,5 +8,9 @@ nonword: true tokens: - '\b(\w+)\s+\1\b' -edit: - - 's/\b(\w+)\s+\1\b/\1/' +action: + name: edit + params: + - regex + - '\b(\w+)\s+\1\b' + - '\1' diff --git a/styles/custom/Typos.yml b/styles/custom/Typos.yml index 06cf72fde3f..be02d360dcc 100644 --- a/styles/custom/Typos.yml +++ b/styles/custom/Typos.yml @@ -10,10 +10,5 @@ swap: - occured: occurred - untill: until -edit: - - 's/teh/the/g' - - 's/recieve/receive/g' - - 's/definately/definitely/g' - - 's/seperate/separate/g' - - 's/occured/occurred/g' - - 's/untill/until/g' +action: + name: replace