Automark
Markov chain-style auto-completion using JavaScript n-grams
Install / Use
/learn @omphalos/AutomarkREADME
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
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
