setSpellCheckerEnabled = (win, enabled) => {
  win.webContents.session.setSpellCheckerEnabled(enabled)
  return win.webContents.session.isSpellCheckerEnabled() === enabled
}
Sets whether to enable the builtin spell checker.

@param {BrowserWindow} win The browser window.
@param {boolean} enabled Whether to enable the builtin spell checker.