ssbc/electron-spellchecker-prebuilt

Name: electron-spellchecker-prebuilt

Owner: Secure Scuttlebutt Consortium

Description: fork of electron-userland/electron-spellchecker that adds prebuilds

Forked from: electron-userland/electron-spellchecker

Created: 2017-12-11 05:47:38.0

Updated: 2018-02-13 02:44:51.0

Pushed: 2017-12-11 05:59:38.0

Homepage:

Size: 584

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

electron-spellchecker

electron-spellchecker is a library to help you implement spellchecking in your Electron applications, as well as handle default right-click Context Menus (since spell checking shows up in them). This library intends to solve the problem of spellchecking in a production-ready, international-friendly way.

electron-spellchecker:

Quick Start
rt {SpellCheckHandler, ContextMenuListener, ContextMenuBuilder} from 'electron-spellchecker';

ow.spellCheckHandler = new SpellCheckHandler();
ow.spellCheckHandler.attachToInput();

tart off as US English, America #1 (lol)
ow.spellCheckHandler.switchLanguage('en-US');

contextMenuBuilder = new ContextMenuBuilder(window.spellCheckHandler);
contextMenuListener = new ContextMenuListener((info) => {
ntextMenuBuilder.showPopupMenu(info);

Language Auto-Detection

The spell checker will attempt to automatically check the language that the user is typing in and switch on-the fly. However, giving it an explicit hint by calling switchLanguage, or providing it a block of sample text via provideHintText will result in much better results.

Sample text should be text that is reasonably likely to be in the same language as the user typing - for example, in an Email reply box, the original Email text would be a great sample, or in the case of Slack, the existing channel messages are used as the sample text.

Learning more

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.