Demo
Everything below runs in your browser. The controls are the options randName, randNickname, randWord and randSentence actually take, the code block under the output is the call your settings amount to, and what you see is drawn fresh every time you press Generate.
Nothing came back. Widen the length range, or the startsWith filter.
The call behind this
import { randName } from 'randino';
randName({ language: 'en', count: 8 });This page runs the repository's own JavaScript package, not a published build.
What to try
- Set
languagetoenandrealismtoinvented. The names still read as English and stop being names anybody has — the generator builds them out of syllable templates instead of drawing from the pool. - Leave
languageonalland press Generate a few times. Nine scripts, and each name's length range is resolved for its own language rather than for the batch. - Pick
ruand switchgender. Russian is the one language where the choice is visible from the outside: the patronymic and the surname both inflect. - On the nickname tab, set
themetoanimalandwordSeparatorto-. The separator counts toward the length range, so a narrow range drops the modifier rather than truncating a word. - Set
maxLengthto8on an English nickname. The three-word shapes drop out rather than being truncated — length picks the shape, not the words. - Turn on
randSuffix. The token is attached after the nickname is finished, which is why the length options never have to account for it. - On the words tab, pick a
themeand press Generate. These are the pools a nickname is built from, handed over with nothing added —randAnimaland its twenty-eight siblings are this call with the theme already chosen. - Switch the decorator to
randModifieron the words tab. A modifier in front of a noun is most of whatrandNicknamedoes, and the code block shows the two functions doing it in the open. - On the sentence tab, set
languagetodeand then toru, and turn on the details. Neither language offers anobjector aplace: both would put the noun in a case its own ending has to change for, so those shapes are not among the ones they declare. - Type two words into
include—brave lionin English,사자 조용히in Korean. Both land in every sentence, andbravebecomes a modifier or a predicate depending on what the rest of the shape has room for. - Set
shapetosimpleand then tocomplex. The sentence gains a phrase rather than a longer word, which is the same thingminLengthdoes one character at a time.
The scope of this page
This page is a demonstration rather than a generator to call from a browser at scale. The library itself has no network calls and no dependencies, so the same code runs on a server, in a build script or in a test fixture exactly as it runs here.
The output is also not seeded. There is no way to ask randino for the same batch twice; if you need reproducibility, keep the strings rather than the settings that produced them.
Where to go next
- Getting started — installing it, for whichever of the three packages you use.
randName,randNickname,randWordandrandSentence— every option in the panel above, written out.- Supported languages — what each language can and cannot do.