code: function resolveGeneration(err) {
              if (err) {
                next(err)
                if (deferred) {
                  deferred.reject(err)
                }
              } else if (words.length < numWords) {
                var tooFewWordsError = new Error(
                  "You asked for more words than could be generated. This may " +
                    "because you're asking for too many words of a certain length."
                )
  
                next(tooFewWordsError)
                if (deferred) {
                  deferred.reject(tooFewWordsError)
                }
              } else {
                next(null, words)
                if (deferred) {
                  deferred.resolve(words)
                }
              }
            }
docs: eslint-disable-next-line no-shadow