SkillAgentSearch skills...

Automark

Markov chain-style auto-completion using JavaScript n-grams

Install / Use

/learn @omphalos/Automark
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Automark

Automark is an experimental Markov-model-style autocompleter, with a demo of JavaScript autocompletion.

Demo

The demo is based on a sampling of JavaScript n-grams in the following open-source JavaScript projects:

JavaScript n-grams are constructed by using acorn to tokenize the JavaScript samples and construct two n-gram trees, one grammar-based, and one textual.

During autocompletion, the trees are traversed and their results combined to provide a short list of suggestions for the programmer.

The code for the UI portion for the demo is based heavily on CodeMirror's Autocomplete demo.

License

MIT

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated6y ago
Forks0

Languages

JavaScript

Security Score

55/100

Audited on Sep 5, 2019

No findings