NEXTWORD(1)
β¨ NEXTWORD(1) β¨
okay bestie, so this is nextword, a whole little icon from the NEXTWORD(1) manual. she's giving classic, she's giving grammar-completion realness, and she has one job. let's get into it π
πΈ NAME πΈ
nextword β display next predicted words (in reverse order) π¦
β SYNOPSIS β
nextword [-t] [-r] [-s spname] [-v] {prefix}
π DESCRIPTION π
so the vibe is: you hand her a partial (part of a) sentence, given from the end, and she outputs the next words allowed in the specified grammar. that's it, that's the whole gig. she's a lookahead queen π
.dfa, .dict and .term files are needed to execute. you can generate them from .grammar and .voca files using mkdfa.
π«Ά heads up bestie: the latter part of the sentence should be given, because the main 2nd pass does a right-to-left parsing. yes, she reads backwards. main character behavior, no cap.
π OPTIONS π
-tβ Input / Output in category name. (default:word)-rβ Enter in reverse order-sspnameβ the name string of short-pause word to be supressed (default:"sp")-vβ Debug output.
π EXAMPLES π
Exmple output of a sample grammar "fruit":
% nextword fruit
Stat: init_voca: read 36 words
Reading in term file (optional)...done
15 categories, 36 words
DFA has 26 nodes and 42 arcs
-----
command completion is disabled
-----
wseq > A BANANA </s>
[wseq: A BANANA </s>]
[cate: (NUM_1|NUM_1|A|A) FRUIT_SINGULAR NS_E]
PREDICTED CATEGORIES/WORDS:
NS_B (<s> )
HAVE (HAVE )
WANT (WANT )
NS_B (<s> )
HAVE (HAVE )
WANT (WANT )
she literally said NS_B, HAVE, WANT twice and honestly? iconic. ate and left no crumbs π
π¦ SEE ALSO π¦
mkdfa( 1 ) ,generate( 1 ) ,accept_check( 1 )
π COPYRIGHT π
Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan
Copyright (c) 1991-2008 Kawahara Lab., Kyoto University
Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
Copyright (c) 2005-2008 Julius project team, Nagoya Institute of Technology
π LICENSE π
The same as Julius.
and that's the whole page bestie!! this lil baddie is dated 10/02/2008 and she comes to you straight from the NEXTWORD(1) source, version and date and all. go forth and predict those words fr fr πβ¨π
π¦ where this page comes from
- ubuntu jammy: julius 4.2.2-0ubuntu3
- ubuntu noble: julius 4.2.2-0ubuntu6
- ubuntu resolute: julius 4.2.2-0ubuntu6
- ubuntu stonking: julius 4.2.2-0ubuntu6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms