src/misspellings.js
function dict(options = {}) {
  if (options.lowerCase) {
    return dictCache[0] || (dictCache[0] = require("../dict/lc-dictionary.json"));
  } else {
    return dictCache[1] || (dictCache[1] = require("../dict/dictionary.json"));
  }
}
function dict(options = {}) {
  if (options.lowerCase) {
    return dictCache[0] || (dictCache[0] = require("../dict/lc-dictionary.json"));
  } else {
    return dictCache[1] || (dictCache[1] = require("../dict/dictionary.json"));
  }
}
function dict ( options = { } ) { if ( options . lowerCase ) { return dictCache [ 0 ] || ( dictCache [ 0 ] = require ( "../dict/lc-dictionary.json" ) ) ; } else { return dictCache [ 1 ] || ( dictCache [ 1 ] = require ( "../dict/dictionary.json" ) ) ; } }
Getter for the dictionary of misspellings.

This getter lazy-loads the dictionary file and caches it internally.

@param {Object} [options] Options.
@param {Boolean} [options.lowerCase=false]
If `true`, returns a dictionary with all keys in lower-case.
@return {Object}  Dictionary object.
The key is misspelled word, and the value is a string of comma-separated
list of correct words.
Getter for the dictionary of misspellings .