Predict next words (`・ω・´)

Overview

Mocword

Release

Predict next words (`・ω・´)

give_me_a_star

Installation

Important: You must prepare Mocword dataset in advance. See below (Dataset and Environment Variable).

Prebuilt Binary

Visit Releases.

Cargo

cargo install mocword

Dataset and Environment Variable

You need to get Mocword dataset from high-moctane/mocword-data.

export MOCWORD_DATA=/path/to/mocword.sqlite

Usage

One Shot Mode

$ mocword -q "this is "
the
a
not
an
what
to
that
true
done
so
$ mocword -q "one of t" --limit 3
the
them
these

Interactive Mode

$ mocword
this is
the a not an what to that true done so
one of t_
the them these those their two three this that themselves

The underscore is a white space.

Query String

Ends with a white space -> predict successive words.

Ends without any white space -> predict words which begin with the last word's prefix.

License

MIT

You might also like...
Scans for indications of an XSS, Oracle SQLi and filters out words containing MySQL
Scans for indications of an XSS, Oracle SQLi and filters out words containing MySQL

PizzaHunt A tool to out pizza the hunt. Scans for indications of an XSS vuln (Double quote escapes) , Oracle SQLi (ORA- in response), filters out url

An opinionated, better system for spelling words in English.

ingLix / ˈɪŋ glɪʃ / English done right. An opinionated, better system for spelling words in English. Preamble Click to expand. The English language is

SHA256 sentence: discover a SHA256 checksum that matches a sentence's description of hex digit words.

SHA256 sentence "The SHA256 for this sentence begins with: one, eight, two, a, seven, c and nine." Inspired by @lauriewired post Inspired by @humbleha

A small CLI utility for helping you learn japanese words made in rust 🦀
A small CLI utility for helping you learn japanese words made in rust 🦀

Memofante (Clique aqui ver em português) Memofante is here, a biiiig help: Do you often forget japanese words you really didn't want to forget? Do you

🦀 Stupid simple presentation of the number of words, characters and lines on your clipboard.

clipcount: Counting words from the clipboard content Why does this exist? Do you find yourself often needing to count the number of words in a piece o

The next gen ls command
The next gen ls command

LSD (LSDeluxe) Table of Contents Description Screenshot Installation Configuration External Configurations Required Optional F.A.Q. Contributors Credi

An experimental next-generation Electron-based text editor
An experimental next-generation Electron-based text editor

Attention: GitHub has decided not to move forward with any aspect of this project. We'll archive the repository in case anybody finds value here, but

Ray Tracing: The Next Week implementation in Rust
Ray Tracing: The Next Week implementation in Rust

rttnw Ray Tracing: The Next Week implementation in Rust How to run Install Rust: Link here. Run project git clone https://github.com/luliic2/rttnw cd

write your next slideshow in rust 🦀, as a self-contained binary  📦.
write your next slideshow in rust 🦀, as a self-contained binary 📦.

🗣 bema Write your next slideshow in rust 🦀 , as a self-contained binary 📦 . 🦀 DSL See examples/basic.rs. 👀 frontends There are several ways you c

LSD (LSDeluxe) - The next gen ls command
LSD (LSDeluxe) - The next gen ls command

LSD (LSDeluxe) Table of Contents Description Screenshot Installation Configuration External Configurations Required Optional F.A.Q. Contributors Credi

A next-generation music player and manager

ouverture A next-generation music player and manager Very much at Work-In-Planning stage now Planned features GUI (localizable) Backend (something lik

Next-GEN Confguration Template Generation Language

Sap lang yet another configuration oriented language name comes from Sapphire which is the birthstone of september Language Feature the last expr of t

XIVLauncher: The Next Degeneration

xivlauncher-neo Concept for a XIVLauncher rewrite in Rust, UI via Vue + Tauri. Project setup yarn --cwd gui install Compiles and hot-reloads for deve

Next-GEN Confguration Template Generation Language

Sap lang yet another configuration oriented language name comes from Sapphire which is the birthstone of september Language Feature the last expr of t

Your next config manager, written in rust

confy Your next config manager, written in rust Based on uncomfyhalomacro/hmph but written for .ini files instead of json :) Getting started Take a lo

A formal, politely verbose programming language for building next-gen reliable applications

vfpl Pronounced "Veepl", the f is silent A politely verbose programming language for building next-gen reliable applications Syntax please initialize

Nextest is a next-generation test runner for Rust.

nextest Nextest is a next-generation test runner for Rust. For more, check out the website. This repository contains the source code for: cargo-nextes

Next-generation, type-safe CLI parser for Rust

Next-generation, type-safe CLI parser for Rust

Comments
  • `cargo install` fails with compilation error

    `cargo install` fails with compilation error

    $cargo install mocword
    
    error[E0277]: expected a `Fn<(char,)>` closure, found `[char; 2]`
       --> /usr/local/google/home/cnieves/.cargo/registry/src/github.com-1ecc6299db9ec823/mocword-0.1.0/src/main.rs:312:56
        |
    312 |             execute(conn, &args, line.trim_end_matches(&['\r', '\n']))?.join(" ")
        |                                       ---------------- ^^^^^^^^^^^^^ expected an `Fn<(char,)>` closure, found `[char; 2]`
        |                                       |
        |                                       required by a bound introduced by this call
        |
        = help: the trait `Fn<(char,)>` is not implemented for `[char; 2]`
        = note: required because of the requirements on the impl of `FnOnce<(char,)>` for `&[char; 2]`
        = note: required because of the requirements on the impl of `Pattern<'_>` for `&[char; 2]`
    
    For more information about this error, try `rustc --explain E0277`.
    
    opened by squk 1
  • VSCode Extension for mocword?

    VSCode Extension for mocword?

    I'm a intensive user of latex and I use Nextword vscode extension for English word completion when writing LaTeX docs. It'll be fascinating if there is a appropriate extension for the new mocword.

    opened by KagaJiankui 1
Owner
high-moctane
Very moctane.
high-moctane
Probabilistically split concatenated words using NLP based on English Wikipedia unigram frequencies.

Untanglr Untanglr takes in a some mangled words and makes sense out of them so you dont have to. It goes through the input and splits it probabilistic

Andrei Butnaru 15 Nov 23, 2022
Common stop words in a variety of languages

About Stop words are words that don't carry much meaning, and are typically removed as a preprocessing step before text analysis or natural language p

Chris McComb 9 Dec 9, 2022
An opinionated, better system for spelling words in English.

ingLix / ˈɪŋ glɪʃ / English done right. An opinionated, better system for spelling words in English. Preamble Click to expand. The English language is

Nicholas Omer Chiasson 6 Aug 8, 2022
SHA256 sentence: discover a SHA256 checksum that matches a sentence's description of hex digit words.

SHA256 sentence "The SHA256 for this sentence begins with: one, eight, two, a, seven, c and nine." Inspired by @lauriewired post Inspired by @humbleha

Joel Parker Henderson 16 Oct 9, 2023
A small CLI utility for helping you learn japanese words made in rust 🦀

Memofante (Clique aqui ver em português) Memofante is here, a biiiig help: Do you often forget japanese words you really didn't want to forget? Do you

Tiaguinho 3 Nov 4, 2023
Which words can you spell using only element abbreviations from the periodic table?

Periodic Words Have you ever wondered which words you can spell using only element abbreviations from the periodic table? Well thanks to this extremel

J Spencer 11 Apr 26, 2021
Probabilistically split concatenated words using NLP based on English Wikipedia unigram frequencies.

Untanglr Untanglr takes in a some mangled words and makes sense out of them so you dont have to. It goes through the input and splits it probabilistic

Andrei Butnaru 15 Nov 23, 2022
Vanitygen-bip39 - Generate vanity / gas efficient Ethereum addresses for your hdwallet (bip39 12 or 24 words)

vanitygen-bip39 Generate Ethereum gas efficient addresses with leading zeros https://medium.com/coinmonks/on-efficient-ethereum-addresses-3fef0596e263

iam4x 9 Jul 2, 2022
Common stop words in a variety of languages

About Stop words are words that don't carry much meaning, and are typically removed as a preprocessing step before text analysis or natural language p

Chris McComb 9 Dec 9, 2022
Scans for indications of an XSS vuln, Oracle SQLi and filters out words containing MySQL

RustScan Scans for indications of an XSS vuln, Oracle SQLi and filters out words containing MySQL. Best used along side ParamSpider found at https://g

null 22 Dec 26, 2022