click (menuItem, targetWindow) {
        if (!addToDictionary(targetWindow, misspelledWord)) {
          log.error(`Error while adding "${misspelledWord}" to dictionary.`)
          return
        }
        // Need to notify Chromium to invalidate the spelling underline.
        targetWindow.webContents.replaceMisspelling(misspelledWord)
      }
Build the spell checker menu depending on input.

@param {boolean} isMisspelled Whether a the selected word is misspelled.
@param {[string]} misspelledWord The selected word.
@param {[string[]]} wordSuggestions Suggestions for `selectedWord`.
@returns {MenuItem[]}