Squish42 commited on
Commit
e3c105a
·
1 Parent(s): 2937c9f

Move spelling replacements to external file

Browse files
Files changed (3) hide show
  1. dataset.yaml +2 -1
  2. pack/edge_cases.csv +1 -1
  3. pack/spelling.csv +5 -0
dataset.yaml CHANGED
@@ -192,9 +192,10 @@ _steps:
192
  - step: &spelling
193
  type: ExactReplace
194
  description: "Spelling mistakes and typos."
 
195
  config:
196
  caseSensitive: false
197
- replacements: [ [ "bow staff","bo staff" ], [ "possiable", "possible" ], [ "possiably", "possibly" ], [ "damamge", "damage" ], [ "didn t", "didn't" ] ]
198
 
199
  - step: &empty
200
  type: FullMatch
 
192
  - step: &spelling
193
  type: ExactReplace
194
  description: "Spelling mistakes and typos."
195
+ pack: [ 'pack/spelling.csv' ]
196
  config:
197
  caseSensitive: false
198
+ packedReplacements: [ 'pack/spelling.csv' ]
199
 
200
  - step: &empty
201
  type: FullMatch
pack/edge_cases.csv CHANGED
@@ -58,4 +58,4 @@
58
  "Figgure ref",
59
  "This rp will be between the character Gin Ichimaru played by True Decade and an OC of mine.\n\n---",
60
  "\nClick to expand...",
61
- "now what?))","Continue."
 
58
  "Figgure ref",
59
  "This rp will be between the character Gin Ichimaru played by True Decade and an OC of mine.\n\n---",
60
  "\nClick to expand...",
61
+ "now what?))","Continue."
pack/spelling.csv ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ "bow staff","bo staff"
2
+ "possiable","possible"
3
+ "possiably","possibly"
4
+ "damamge","damage"
5
+ "didn t","didn't"