Contractions
Convert English contractions to complete words.
Uses the word list from https://en.wikipedia.org/wiki/Wikipedia:List_of_English_contractions.
npm install contractions
var contractions = ; console;// Outputs: I do not know who you all are. console;// Outputs: Y'all'll'ven't seen this.
You can also use your own list of contractions / strings.
Note: Longer strings take precedent over short strings.
var Contractions = Contractions; var contractions = 'asap': 'as soon as possible' // only lower case characters should be used in the list 'a.s.a.p.': 'as soon as possible'; var text = 'asap'; text = contractions;console;// Outputs: as soon as possible text = contractions;console;// Outputs: a.s.a.p.