Index
All Classes and Interfaces|All Packages|Constant Field Values
$
- $$$Text() - Method in enum class com.github.yellowstonegames.text.Pronoun
- $$Text() - Method in enum class com.github.yellowstonegames.text.Pronoun
- $Text() - Method in enum class com.github.yellowstonegames.text.Pronoun
A
- accentBoth(EnhancedRandom, String[], double, double) - Static method in class com.github.yellowstonegames.text.Language
- accentConsonants(EnhancedRandom, String[], double) - Static method in class com.github.yellowstonegames.text.Language
- accentVowels(EnhancedRandom, String[], double) - Static method in class com.github.yellowstonegames.text.Language
- addAccents(double, double) - Method in class com.github.yellowstonegames.text.Language
-
Produces a new Language like this one but with extra vowels and/or consonants possible, adding from a wide selection of accented vowels (if vowelInfluence is above 0.0) and/or consonants (if consonantInfluence is above 0.0).
- addArchivedCategoriesAlternate(String) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Given an archive String saved by
Thesaurus.archiveCategoriesAlternate()(probably from another version of SquidLib), this makes the Thesaurus class act like it did in that archive, assuming theThesaurus.rngis seeded the same and uses the same algorithm/RandomnessSource. - addCategory(CharSequence, Collection) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Allows this Thesaurus to replace a specific keyword, typically containing multiple backtick characters (
`) so it can't be confused with a "real word," with one of the words in synonyms (chosen in shuffled order). - addFakeWords() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Adds a large list of words pre-generated by Language and hand-picked for fitness, and makes them accessible with a keyword based on the language.
- ADDITIONAL_GENDER - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
Third-gender pronoun preference, potentially relevant for cultures with non-binary gender terms.
- addKnownCategories() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Adds several pre-made categories to this Thesaurus' known categories, but won't cause it to try to replace normal words with synonyms (only categories, which contain backticks in the name).
- addModifiers(Language.Modifier...) - Method in class com.github.yellowstonegames.text.Language
-
Adds the specified Modifier objects to a copy of this Language and returns it.
- addModifiers(Collection) - Method in class com.github.yellowstonegames.text.Language
-
Adds the specified Modifier objects from a Collection to a copy of this Language and returns it.
- addReplacement(CharSequence, String) - Method in class com.github.yellowstonegames.text.Thesaurus
- adjective - Static variable in class com.github.yellowstonegames.text.Thesaurus
- ALIEN_A - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that could be spoken by some very-non-human culture that would typically be fitting for an alien species.
- ALIEN_E - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that could be spoken by some very-non-human culture that would typically be fitting for an alien species.
- ALIEN_I - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that could be spoken by some very-non-human culture that would typically be fitting for an alien species.
- ALIEN_O - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that could be spoken by some very-non-human culture that would typically be fitting for an alien species.
- ALIEN_U - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that could be spoken by some very-non-human culture that would typically be fitting for an alien species.
- ALL - Static variable in enum class com.github.yellowstonegames.text.Pronoun
-
The cached result of
Pronoun.values(), so you can avoid repeatedly allocatingPronoun[]objects. - allAdjectives - Variable in class com.github.yellowstonegames.text.Mnemonic
- allNouns - Variable in class com.github.yellowstonegames.text.Mnemonic
- Alteration() - Constructor for class com.github.yellowstonegames.text.Language.Alteration
- Alteration(String, String) - Constructor for class com.github.yellowstonegames.text.Language.Alteration
- Alteration(String, String, double) - Constructor for class com.github.yellowstonegames.text.Language.Alteration
- Alteration(Pattern, String, double) - Constructor for class com.github.yellowstonegames.text.Language.Alteration
- alterations - Variable in class com.github.yellowstonegames.text.Language.Modifier
- alterations - Variable in class com.github.yellowstonegames.text.Thesaurus
- analyze(CharSequence) - Method in class com.github.yellowstonegames.text.MarkovChar
-
This is the main necessary step before using a MarkovChar; you must call this method at some point before you can call any other methods.
- analyze(CharSequence) - Method in class com.github.yellowstonegames.text.MarkovText
-
This is the main necessary step before using a MarkovText; you must call this method at some point before you can call any other methods.
- ANCIENT_EGYPTIAN - Static variable in class com.github.yellowstonegames.text.Language
-
A (necessarily) very rough anglicization of Old Egyptian, a language that has no precisely known pronunciation rules and was written with hieroglyphics.
- anyConsonant - Static variable in class com.github.yellowstonegames.text.Language
-
A pattern String that will match any vowel Language can produce out-of-the-box, including Latin, Greek, and Cyrillic; for use when a String will be interpreted as a regex (as in
Language.Alteration). - anyConsonantCluster - Static variable in class com.github.yellowstonegames.text.Language
-
A pattern String that will match any vowel Language can produce out-of-the-box, including Latin, Greek, and Cyrillic; for use when a String will be interpreted as a regex (as in
Language.Alteration). - anyVowel - Static variable in class com.github.yellowstonegames.text.Language
-
A pattern String that will match any vowel Language can produce out-of-the-box, including Latin, Greek, and Cyrillic; for use when a String will be interpreted as a regex (as in
Language.Alteration). - anyVowelCluster - Static variable in class com.github.yellowstonegames.text.Language
-
A pattern String that will match any vowel Language can produce out-of-the-box, including Latin, Greek, and Cyrillic; for use when a String will be interpreted as a regex (as in
Language.Alteration). - appendCapitalized(String, TextBuffer) - Static method in class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- appendSubstitution(MatchResult, TextBuffer) - Method in class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- ARABIC_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation Arabic, using mostly the Latin alphabet but with some Greek letters for tough transliteration topics.
- archiveCategoriesAlternate() - Static method in class com.github.yellowstonegames.text.Thesaurus
-
Gets a stable (large) String that stores all categories this version of Thesaurus knows, as well as all of the words each category includes.
B
- BeingSubstitution() - Constructor for class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- BeingSubstitution(Pronoun, boolean, String...) - Constructor for class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- BeingSubstitution(String, Pronoun, boolean) - Constructor for class com.github.yellowstonegames.text.Messaging.BeingSubstitution
C
- cacheLevel - Variable in class com.github.yellowstonegames.text.Translator
-
The degree of vocabulary to cache to speed up future searches at the expense of memory usage.
- categories - Static variable in class com.github.yellowstonegames.text.Thesaurus
- CELESTIAL - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that is meant to sound like it could be spoken by divine or (magical) otherworldly beings.
- chain(long) - Method in class com.github.yellowstonegames.text.MarkovChar
-
Generate a word-like String based on the previously analyzed corpus text (using
MarkovChar.analyze(CharSequence)) that terminates when a non-letter character other than"'"is encountered, or once the length would be greater than 200 characters without stopping. - chain(long) - Method in class com.github.yellowstonegames.text.MarkovText
-
Generate a roughly-sentence-sized piece of text based on the previously analyzed corpus text (using
MarkovText.analyze(CharSequence)) that terminates when stop punctuation is used (".", "!", "?", or "..."), or once the length would be greater than 200 characters without encountering stop punctuation(it terminates such a sentence with "." or "..."). - chain(long, int) - Method in class com.github.yellowstonegames.text.MarkovChar
-
Generate a word-like String based on the previously analyzed corpus text (using
MarkovChar.analyze(CharSequence)) that terminates when a non-letter character other than"'"is encountered, or once the length would be greater thanmaxLengthcharacters without stopping. - chain(long, int) - Method in class com.github.yellowstonegames.text.MarkovText
-
Generate a roughly-sentence-sized piece of text based on the previously analyzed corpus text (using
MarkovText.analyze(CharSequence)) that terminates when stop punctuation is used (".", "!", "?", or "...") or once the maxLength would be exceeded by any other words (it terminates such a sentence with "." or "..."). - chance - Variable in class com.github.yellowstonegames.text.Language.Alteration
- changeNames(Translator) - Method in class com.github.yellowstonegames.text.MarkovText
-
After calling
MarkovText.analyze(CharSequence), you can optionally call this to alter any words in this MarkovText that were used as a proper noun (determined by whether they were capitalized in the middle of a sentence), changing them to a ciphered version using the givenTranslator. - changeNames(Translator, Collection) - Method in class com.github.yellowstonegames.text.MarkovText
-
After calling
MarkovText.analyze(CharSequence), you can optionally call this to alter any words in this MarkovText that are present in the given Collection, changing them to a ciphered version using the givenTranslator. - charReplacementTable(String, String) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Creates a Modifier that will replace the nth char in initial with the nth char in change.
- chars - Variable in class com.github.yellowstonegames.text.MarkovChar
-
All chars (case-sensitive and only counting chars that are letters in Unicode, plus
"'") that this encountered during the latest call toMarkovChar.analyze(CharSequence). - checkAll(CharSequence, Pattern[]) - Static method in class com.github.yellowstonegames.text.Language
- checkVulgarity(CharSequence) - Static method in class com.github.yellowstonegames.text.Language
-
Checks a CharSequence, such as a String, against an overzealous vulgarity filter, returning true if the text could contain vulgar elements or words that could seem vulgar or juvenile.
- CHEROKEE_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
A rough imitation of the Cherokee language, using an attempt at romanizing the syllabary the language is often written with, using only the parts of the language that are usually written down.
- CHINESE_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
An approximation of Hanyu Pinyin, a Romanization technique used for Mandarin Chinese that has been in common use since the 1980s.
- cipher(String) - Method in class com.github.yellowstonegames.text.Translator
-
Given a String that should contain words in the source language, this translates each word to the fake language, using existing translations if previous calls to cipher() or lookup() had translated that word.
- cipherMarkup(CharSequence) - Method in class com.github.yellowstonegames.text.Translator
-
Given a String, StringBuilder, or other CharSequence that should contain words in the source language (almost always English, since this only knows English prefixes and suffixes), this finds sections of the text that start and end with
<?<and>?>, translates each word between those start/end markers to the fake language, using existing translations if previous calls to cipher() or lookup() had translated that word, and removes the<?</>?>markup. - clean - Variable in class com.github.yellowstonegames.text.Language
- closingConsonants - Variable in class com.github.yellowstonegames.text.Language
- closingSyllables - Variable in class com.github.yellowstonegames.text.Language
- com.github.yellowstonegames.text - package com.github.yellowstonegames.text
- COMMON_USA_FEMALE_NAMES - Static variable in class com.github.yellowstonegames.text.NameGenerator
- COMMON_USA_LAST_NAMES - Static variable in class com.github.yellowstonegames.text.NameGenerator
- COMMON_USA_MALE_NAMES - Static variable in class com.github.yellowstonegames.text.NameGenerator
- consonantClusters - Static variable in class com.github.yellowstonegames.text.Language
- copy() - Method in class com.github.yellowstonegames.text.Language
- copy() - Method in class com.github.yellowstonegames.text.MarkovChar
-
Copies the char array
MarkovChar.chars, the IntIntMappairs, and the 2D jagged int arrayMarkovChar.processedinto a new MarkovChar. - copy() - Method in class com.github.yellowstonegames.text.MarkovText
-
Copies the String array
MarkovText.wordsand the 2D jagged int arrayMarkovText.processedinto a new MarkovText. - CROW - Static variable in class com.github.yellowstonegames.text.Language
-
A rough imitation of the Crow language of the American Midwest, using some tone marks.
D
- decipher(CharSequence, Map) - Method in class com.github.yellowstonegames.text.Translator
-
Deciphers words in an already-ciphered text with a given String-to-String Map for a vocabulary.
- DEEP_SPEECH - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that would potentially be fitting for a trade language spoken by various very-different groups, such as creatures with tentacled faces who need to communicate with spider-elves and living crystals.
- defaultLanguage - Variable in class com.github.yellowstonegames.text.Thesaurus
- deleteCost - Variable in class com.github.yellowstonegames.text.StringDistance
-
The cost to delete one char from anywhere in source on the way to target.
- DEMONIC - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that might be suitable for a language spoken by demons, aggressive warriors, or people who seek to emulate or worship similar groups.
- directText(String) - Method in enum class com.github.yellowstonegames.text.Pronoun
- distance(CharSequence, CharSequence) - Method in class com.github.yellowstonegames.text.StringDistance
-
Compute the Damerau-Levenshtein distance between the specified source string and the specified target string.
- DOUBLE_CONSONANTS - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
For a language that has a 50% chance to repeat a single consonant.
- DOUBLE_VOWELS - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
For a language that has a 40% chance to repeat a single Latin vowel (a, e, o, or a variant on one of them like å or ö, but not merged letters like æ and œ).
- DRAGON - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that tries to sound like the speech of a powerful and pompous dragon, using long, complex words and a mix of hard consonants like "t" and "k", "liquid" consonants like "l" and "r", and sometimes vowel groups like "ie" and "aa".
E
- ELF - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that tries to imitate the various languages spoken by elves in J.R.R.
- endPunctuation - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- ENGLISH - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation English; may seem closer to Dutch in some generated text, and is not exactly the best imitation.
- equals(Object) - Method in class com.github.yellowstonegames.text.Language.Alteration
- equals(Object) - Method in class com.github.yellowstonegames.text.Language
- equals(Object) - Method in class com.github.yellowstonegames.text.Language.Modifier
- equals(Object) - Method in class com.github.yellowstonegames.text.Language.SentenceForm
- equals(Object) - Method in class com.github.yellowstonegames.text.Mnemonic
- equals(Object) - Method in class com.github.yellowstonegames.text.Translator
F
- FANCY_FANTASY_NAME - Static variable in class com.github.yellowstonegames.text.Language
-
A mix of four different languages with some accented characters added onto an ASCII base, that can be good for generating single words for creature or place names in fantasy settings that should have a "fancy" feeling from having unnecessary accents added primarily for visual reasons.
- FANTASY_NAME - Static variable in class com.github.yellowstonegames.text.Language
-
A mix of four different languages, using only ASCII characters, that is meant for generating single words for creature or place names in fantasy settings.
- fantasyLanguages - Static variable in class com.github.yellowstonegames.text.Language
-
Language constants that are meant to sound like they belong to fictional groups or species.
- FELINE - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that might be suitable for cats or cat-like humanoids.
- FEMALE_GENDER - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
Female pronoun preference, as in "She is her own boss."
name/name_s/i/me/my/mine/myself
Name/Name's/she/she/her/hers/herself "^i hurr^$$$" becomes "she hurries". - finisher - Variable in class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- FIRST_PERSON_PLURAL - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
As in, "We are our own bosses." Doesn't reference gender, and applies to groups.
- FIRST_PERSON_SINGULAR - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
As in, "I am my own boss." Doesn't reference gender.
- flowerTermShuffler - Variable in class com.github.yellowstonegames.text.Thesaurus
- FRENCH - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation modern French, using the (many) accented vowels that are present in the language.
- fromLongWordMnemonic(String) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Takes a String phrase produced by
Mnemonic.toLongWordMnemonic(long, boolean)and returns the long used to encode that String. - fromMnemonic(String) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Takes a String produced by
Mnemonic.toMnemonic(long)orMnemonic.toMnemonic(long, boolean)and returns the long used to encode that gibberish String. - fromWordMnemonic(String) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Takes a String phrase produced by
Mnemonic.toWordMnemonic(int, boolean)and returns the int used to encode that String. - fruitTermShuffler - Variable in class com.github.yellowstonegames.text.Thesaurus
- fvesText() - Method in enum class com.github.yellowstonegames.text.Pronoun
G
- GENERAL_CLEANUP - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
Some changes that can be applied when sanity checks (which force re-generating a new word) aren't appropriate for fixing a word that isn't pronounceable.
- generate() - Method in class com.github.yellowstonegames.text.NameGenerator
-
Gets one random String name.
- generate(int) - Method in class com.github.yellowstonegames.text.NameGenerator
-
Gets an array of random String names, sized to match amountToGenerate.
- generateList(int) - Method in class com.github.yellowstonegames.text.NameGenerator
-
Gets an ArrayList of random String names, sized to match amountToGenerate.
- get(String) - Static method in class com.github.yellowstonegames.text.Language
-
If a Language is known and is in
Language.registered, this allows you to look up that Language by name (using a name fromLanguage.registeredNames). - getAt(int) - Static method in class com.github.yellowstonegames.text.Language
-
If a Language is known and is in
Language.registered, this allows you to look up that Language by index, from 0 toLanguage.registered.length - 1. - getCacheLevel() - Method in class com.github.yellowstonegames.text.Translator
- getName() - Method in class com.github.yellowstonegames.text.Language
-
Returns the name of this Language, such as "English" or "Deep Speech", if one was registered for this.
- GOBLIN - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that might be suitable for stealthy humanoids, such as goblins, or as a secret language used by humans who want to avoid notice.
- GREEK_AUTHENTIC - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation ancient Greek, using the original Greek alphabet.
- GREEK_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation ancient Greek, romanized to use the Latin alphabet.
- GROUP - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
Any third-person plural, as in "They are their own bosses." Not to be confused with UNSPECIFIED_GENDER, which is for singular beings, but usually uses "they" in the same way (not always).
H
- hash64() - Method in class com.github.yellowstonegames.text.Language
- hashCode() - Method in class com.github.yellowstonegames.text.Language.Alteration
- hashCode() - Method in class com.github.yellowstonegames.text.Language
- hashCode() - Method in class com.github.yellowstonegames.text.Language.Modifier
- hashCode() - Method in class com.github.yellowstonegames.text.Mnemonic
- HINDI_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation Hindi, romanized to use the Latin alphabet using accented glyphs similar to the IAST standard.
- HISS - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
For a character who always lengthens 's' and 'z' sounds not starting a word.
- HLETKIP - Static variable in class com.github.yellowstonegames.text.Language
-
A fictional language that could ostensibly be spoken by some group of humans, but that isn't closely based on any one real-world language.
I
- IMP - Static variable in class com.github.yellowstonegames.text.Language
-
A fantasy language meant for obnoxious screeching annoying enemies more-so than for intelligent friends or foes.
- INFERNAL - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language that might be suitable for a language spoken by fiends, users of witchcraft, or people who seek to emulate or worship similar groups.
- initialize(Language, long) - Method in class com.github.yellowstonegames.text.Translator
-
Changes the language this can cipher, clearing its known translation (if any) and using the given Language and shift as if given to
Translator(Language, long). - INSECT - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy/sci-fi language that would typically be fitting for an insect-like species without a close equivalent to human lips.
- insertClosingConsonant(String, double) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Adds the potential for the String
insertionto be used as a consonant in addition to the consonants that the language already uses; insertion will replace an existing consonant at the end of a word with a probability ofchance, so chance should be low (0.2 at most) unless you want the newly-inserted consonant to be likely to end every word of some sentences. - insertClosingVowel(String, double) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Adds the potential for the String
insertionto be used as a vowel in addition to the vowels that the language already uses; insertion will replace an existing vowel at the end of a word with a probability ofchance, so chance should be low (0.2 at most) unless you want the newly-inserted vowel to be likely to end every word of some sentences. - insertConsonant(String, double) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Adds the potential for the String
insertionto be used as a consonant in addition to the consonants that the language already uses; insertion will replace an existing consonant (at any point in a word that had a consonant generated) with a probability ofchance, so chance should be low (0.1 at most) unless you want the newly-inserted consonant to be likely to be present in every word of some sentences. - insertCost - Variable in class com.github.yellowstonegames.text.StringDistance
-
The cost to insert one char into anywhere in source on the way to target.
- insertOpeningConsonant(String, double) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Adds the potential for the String
insertionto be used as a consonant in addition to the consonants that the language already uses; insertion will replace an existing consonant at the start of a word with a probability ofchance, so chance should be low (0.2 at most) unless you want the newly-inserted consonant to be likely to start every word of some sentences. - insertOpeningVowel(String, double) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Adds the potential for the String
insertionto be used as a vowel in addition to the vowels that the language already uses; insertion will replace an existing vowel at the start of a word with a probability ofchance, so chance should be low (0.2 at most) unless you want the newly-inserted vowel to be likely to start every word of some sentences. - insertVowel(String, double) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Adds the potential for the String
insertionto be used as a vowel in addition to the vowels that the language already uses; insertion will replace an existing vowel (at any point in a word that had a vowel generated) with a probability ofchance, so chance should be low (0.1 at most) unless you want the newly-inserted vowel to be likely to be present in every word of some sentences. - INUKTITUT - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation text from an approximation of one of the Inuktitut languages spoken by various people of the Arctic and nearby areas.
- items - Variable in class com.github.yellowstonegames.text.Mnemonic
- iText() - Method in enum class com.github.yellowstonegames.text.Pronoun
J
- JAPANESE_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation Japanese, romanized to use the Latin alphabet.
K
- KOBOLD - Static variable in class com.github.yellowstonegames.text.Language
-
Fantasy language based closely on
Language.DRAGON, but with much shorter words normally and closing syllables that may sound "rushed" or "crude", though it has the same general frequency of most consonants and vowels. - KOREAN_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation text from an approximation of Korean, using the Revised Romanization method that is official in South Korea today and is easier to type.
L
- language - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- language - Variable in class com.github.yellowstonegames.text.Translator
-
The Language this will use to construct words; normally one of the static fields in Language, a Language produced by using the
Language.mixAll(Object...)method of two or more of them, or a random Language produced byLanguage.randomLanguage(long). - Language - Class in com.github.yellowstonegames.text
-
A text generator for producing sentences and/or words in nonsense languages that fit a theme.
- Language() - Constructor for class com.github.yellowstonegames.text.Language
-
Zero-arg constructor for a Language; produces a Language equivalent to Language.ENGLISH .
- Language(String[], String[], String[], String[], String[], String[], String[], int[], double[], double, double, double, double) - Constructor for class com.github.yellowstonegames.text.Language
-
This is a very complicated constructor! Maybe look at the calls to this to initialize static members of this class, LOVECRAFT and GREEK_ROMANIZED.
- Language(String[], String[], String[], String[], String[], String[], String[], int[], double[], double, double, double, double, Pattern[], boolean) - Constructor for class com.github.yellowstonegames.text.Language
-
This is a very complicated constructor! Maybe look at the calls to this to initialize static members of this class, LOVECRAFT and GREEK_ROMANIZED.
- Language.Alteration - Class in com.github.yellowstonegames.text
- Language.Modifier - Class in com.github.yellowstonegames.text
- Language.SentenceForm - Class in com.github.yellowstonegames.text
-
A simple way to bundle a Language with the arguments that would be passed to it when calling
Language.sentence(EnhancedRandom, int, int, String[], String[], double, int)or one of its overloads. - languages - Static variable in class com.github.yellowstonegames.text.Thesaurus
- latestGenerated - Variable in class com.github.yellowstonegames.text.Thesaurus
- LATIN - Static variable in class com.github.yellowstonegames.text.Language
-
An imitation of Classical Latin, using some modern conventions so it can be suitable for scientific names or other common English uses of Latin words.
- learnIrregularWord(String, String, String, String, String, String, String) - Static method in class com.github.yellowstonegames.text.Messaging
-
Adds a given
word, which should start with a lower-case letter and use lower-case letters and underscores only, to the dictionary this stores. - learnTranslation(Map, String) - Method in class com.github.yellowstonegames.text.Translator
-
Adds a translation pair to vocabulary so it can be used in decipher, giving a correct translation for sourceWord.
- learnTranslations(Map, Iterable) - Method in class com.github.yellowstonegames.text.Translator
-
Adds translation pairs to vocabulary so it can be used in decipher, giving a correct translation for sourceWords.
- learnTranslations(Map, String...) - Method in class com.github.yellowstonegames.text.Translator
-
Adds translation pairs to vocabulary so it can be used in decipher, giving a correct translation for sourceWords.
- LIGATURES - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
Simple changes to merge "ae" into "æ", "oe" into "œ", and any of "aé", "áe", or "áé" into "ǽ".
- LISP - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
For a character who always pronounces 's', 'ss', and 'sh' as 'th'.
- lookup(String) - Method in class com.github.yellowstonegames.text.Thesaurus
- lookup(String) - Method in class com.github.yellowstonegames.text.Translator
-
Given a word in the source language (usually English), looks up an existing translation for that word, or if none exists, generates a new word based on the phonetic hash of the source word, any of its stemming information such as prefixes or suffixes, and this Translator's Language.
- LOVECRAFT - Static variable in class com.github.yellowstonegames.text.Language
-
Ia! Ia! Cthulhu Rl'yeh ftaghn! Useful for generating cultist ramblings or unreadable occult texts.
- LOVECRAFT_MYTHOS_NAMES - Static variable in class com.github.yellowstonegames.text.NameGenerator
M
- makeFlowerName() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a flower or flowering plant, such as "tulip of Jirui" or "thorny lilac".
- makeFlowerName(Language) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a flower or flowering plant, such as "tulip of Jirui" or "thorny lilac", with the Language already available instead of randomly created.
- makeFruitName() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a fruit, such as "green lime-melon" or "Ung's date".
- makeFruitName(Language) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a fruit, such as "green lime-melon" or "Ung's date", with the Language already available instead of randomly created.
- makeNationName() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a nation, such as "Iond-Gouccief Alliance" or "The Last Drayo Commonwealth".
- makeNationName(Language) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a nation, such as "Iond-Gouccief Alliance" or "The Last Drayo Commonwealth", with the Language already available instead of randomly created.
- makeNutName() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a nut or bean, such as "nut of Gikoim" or "Pelyt's cashew".
- makeNutName(Language) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a nut or bean, such as "nut of Gikoim" or "Pelyt's cashew", with the Language already available instead of randomly created.
- makePlantName() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a plant or tree, such as "Ikesheha's maple" or "sugarleaf birch".
- makePlantName(Language) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a plant or tree, such as "Ikesheha's maple" or "sugarleaf birch", with the Language already available instead of randomly created.
- makePotionDescription() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible description for a potion in a container, such as "a smoky glass flask containing a few drops of an orange tonic", "a milk carton filled with a red fluid", "a shining silver bottle filled with an effervescent violet potion", or "a wineskin filled with a black serum".
- makeVegetableName() - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a vegetable, such as "miniature yam" or Iliakshe's spicy zucchini".
- makeVegetableName(Language) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Generates a random possible name for a vegetable, such as "miniature yam" or Iliakshe's spicy zucchini".
- MALAY - Static variable in class com.github.yellowstonegames.text.Language
-
An approximation of the Malay language or any of its close relatives, such as Indonesian.
- MALE_GENDER - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
Male pronoun preference, as in "He is his own boss."
name/name_s/i/me/my/mine/myself
Name/Name's/he/he/his/his/himself "^i hurr^$$$" becomes "he hurries". - MAORI - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation text from an approximation of the Maori language, spoken in New Zealand both today and historically, and closely related to some other Polynesian languages.
- mappings - Variable in class com.github.yellowstonegames.text.Thesaurus
- MarkovChar - Class in com.github.yellowstonegames.text
-
A simple Markov chain text generator; call
MarkovChar.analyze(CharSequence)once on a large sample text, then you can callMarkovChar.chain(long)many times to get odd-sounding "remixes" of the sample text, one char at a time. - MarkovChar() - Constructor for class com.github.yellowstonegames.text.MarkovChar
-
Creates an empty MarkovChar; you should call
MarkovChar.analyze(CharSequence)before doing anything else with this new object. - MarkovText - Class in com.github.yellowstonegames.text
-
A simple Markov chain text generator; call
MarkovText.analyze(CharSequence)once on a large sample text, then you can callMarkovText.chain(long)many times to get odd-sounding "remixes" of the sample text. - MarkovText() - Constructor for class com.github.yellowstonegames.text.MarkovText
-
Creates an empty MarkovText; you should call
MarkovText.analyze(CharSequence)before doing anything else with this new object. - MARKUP_COLOR_NAMES - Static variable in class com.github.yellowstonegames.text.Thesaurus
-
An Alteration that changes certain color names so they are surrounded by color markup tags, compatible with at least libGDX color markup and TextraTypist color markup.
- markupMatcher - Variable in class com.github.yellowstonegames.text.Translator
- maxChars - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- maxWords - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- merge1000(EnhancedRandom, String[], String[], double) - Method in class com.github.yellowstonegames.text.Language
- Messaging - Class in com.github.yellowstonegames.text
-
Helps handle formation of messages from a template, using correct pronouns and helping handle various idiosyncrasies in English-language text.
- Messaging.BeingSubstitution - Class in com.github.yellowstonegames.text
-
Undocumented; use at your own peril.
- meText() - Method in enum class com.github.yellowstonegames.text.Pronoun
- midConsonants - Variable in class com.github.yellowstonegames.text.Language
- midPunctuation - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- midPunctuationFrequency - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- midVowels - Variable in class com.github.yellowstonegames.text.Language
- mineText() - Method in enum class com.github.yellowstonegames.text.Pronoun
- minWords - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- mismatchTranslation(Map, String, String) - Method in class com.github.yellowstonegames.text.Translator
-
Adds a translation pair to vocabulary so it can be used in decipher, giving a typically-incorrect translation for correctWord where it provides mismatchWord instead when the ciphered version of correctWord appears.
- mix(double, Language, double, Object...) - Method in class com.github.yellowstonegames.text.Language
-
Produces a Language by mixing this Language with one or more other Language objects.
- mix(Language, double) - Method in class com.github.yellowstonegames.text.Language
-
Makes a new Language that mixes this object with
other, mingling the consonants and vowels they use as well as any word suffixes or other traits, and favoring the qualities inotherbyotherInfluence, which will value both languages evenly if it is 0.5 . - mixAll(Object...) - Static method in class com.github.yellowstonegames.text.Language
-
Produces a Language from a group of Language parameters and the weights for those parameters.
- Mnemonic - Class in com.github.yellowstonegames.text
-
A utility class to print (typically very large) numbers in a way that players can more-meaningfully tell them apart.
- Mnemonic() - Constructor for class com.github.yellowstonegames.text.Mnemonic
-
Default constructor for a Mnemonic generator; equivalent to
new Mnemonic(1L), and probably a good choice unless you know you need different seeds. - Mnemonic(long) - Constructor for class com.github.yellowstonegames.text.Mnemonic
-
Constructor for a Mnemonic generator that allows a different seed to be chosen, which will alter the syllables produced by
Mnemonic.toMnemonic(long)and the words produced byMnemonic.toWordMnemonic(int, boolean)if you give the same numeric argument to differently-seeded Mnemonic generators. - Mnemonic(long, String[], String[]) - Constructor for class com.github.yellowstonegames.text.Mnemonic
-
Constructor that allows you to specify the adjective and noun collections (given as arrays) used by
Mnemonic.toWordMnemonic(int, boolean)as well as a seed. - Mnemonic(long, Collection, Collection) - Constructor for class com.github.yellowstonegames.text.Mnemonic
-
Constructor that allows you to specify the adjective and noun collections used by
Mnemonic.toWordMnemonic(int, boolean)as well as a seed. - Mnemonic(NumberedSet, NumberedSet, NumberedSet) - Constructor for class com.github.yellowstonegames.text.Mnemonic
-
Directly references the given
NumberedSetinstances as the 3-char Strings in items, the adjectives, and the nouns. - Mnemonic(Mnemonic) - Constructor for class com.github.yellowstonegames.text.Mnemonic
- modifier(String, String) - Static method in class com.github.yellowstonegames.text.Language
-
Convenience method that just calls
Modifier(String, String). - modifier(String, String, double) - Static method in class com.github.yellowstonegames.text.Language
-
Convenience method that just calls
Modifier(String, String, double). - Modifier() - Constructor for class com.github.yellowstonegames.text.Language.Modifier
- Modifier(Language.Alteration...) - Constructor for class com.github.yellowstonegames.text.Language.Modifier
- Modifier(String, String) - Constructor for class com.github.yellowstonegames.text.Language.Modifier
- Modifier(String, String, double) - Constructor for class com.github.yellowstonegames.text.Language.Modifier
- modifiers - Variable in class com.github.yellowstonegames.text.Language
- modify(EnhancedRandom, StringBuilder) - Method in class com.github.yellowstonegames.text.Language.Modifier
- MONGOLIAN - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation text from an approximation of one of the languages spoken in the 13th-century Mongol Empire.
- myselfText() - Method in enum class com.github.yellowstonegames.text.Pronoun
- myText() - Method in enum class com.github.yellowstonegames.text.Pronoun
N
- NAHUATL - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation text from an approximation of the language spoken by the Aztec people and also over a million contemporary people in parts of Mexico.
- name - Variable in class com.github.yellowstonegames.text.Language
- name_sText(String) - Method in enum class com.github.yellowstonegames.text.Pronoun
- nameAt(int) - Static method in class com.github.yellowstonegames.text.Language
-
If a Language is known and is in
Language.registered, this allows you to look up that Language's name by index, from 0 toLanguage.registeredNames.length - 1. - NameGenerator - Class in com.github.yellowstonegames.text
-
Based on work by Nolithius available at the following two sites: GitHub for weighted-letter-namegen Google Code for weighted-letter-namegen
- NameGenerator(String[]) - Constructor for class com.github.yellowstonegames.text.NameGenerator
-
Creates the generator by seeding the provided list of names.
- NameGenerator(String[], int) - Constructor for class com.github.yellowstonegames.text.NameGenerator
-
Creates the generator by seeding the provided list of names.
- NameGenerator(String[], int, EnhancedRandom) - Constructor for class com.github.yellowstonegames.text.NameGenerator
-
Creates the generator by seeding the provided list of names.
- nameText(String) - Method in enum class com.github.yellowstonegames.text.Pronoun
- NO_DOUBLES - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
For a language that never repeats the same letter twice in a row.
- NO_GENDER - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
Inanimate objects or beings without gender, as in "It is its own boss."
name/name_s/i/me/my/mine/myself
Name/Name's/it/it/its/its/itself "^i hurr^$$$" becomes "it hurries". - NORSE - Static variable in class com.github.yellowstonegames.text.Language
-
Somewhat close to Old Norse, which is itself very close to Icelandic, so this uses Icelandic spelling rules.
- NORSE_SIMPLIFIED - Static variable in class com.github.yellowstonegames.text.Language
-
Somewhat close to Old Norse, which is itself very close to Icelandic, but changed to avoid letters not on a US-ASCII keyboard.
- noun - Static variable in class com.github.yellowstonegames.text.Thesaurus
- nouns - Static variable in class com.github.yellowstonegames.text.Thesaurus
- numberAdjective(int) - Static method in class com.github.yellowstonegames.text.Thesaurus
-
Gets an English word that describes a numbered position in some sequence, if this knows it (such as "second" or "eleventh").
- numberAdjectiveInRange(int, int) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Gets an English word that describes a numbered position in some sequence, if this knows it (such as "second" or "eleventh"), where the number is chosen randomly nextInt lowest and highest, both inclusive.
- numberAdjectives - Static variable in class com.github.yellowstonegames.text.Thesaurus
- numbers - Static variable in class com.github.yellowstonegames.text.Thesaurus
- numberWord(int) - Static method in class com.github.yellowstonegames.text.Thesaurus
-
Gets an English word for a given number, if this knows it.
- numberWordInRange(int, int) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Gets an English word for a number, if this knows it, where the number is chosen randomly nextInt lowest and highest, both inclusive.
- nutTermShuffler - Variable in class com.github.yellowstonegames.text.Thesaurus
O
- openingConsonants - Variable in class com.github.yellowstonegames.text.Language
- openingVowels - Variable in class com.github.yellowstonegames.text.Language
- ORK - Static variable in class com.github.yellowstonegames.text.Thesaurus
-
Thesaurus preset that changes all text to sound like this speaker: "Desaurus preset dat changez all text to sound liek dis speakah." You may be familiar with a certain sci-fi game that has orks who sound like this.
P
- pairs - Variable in class com.github.yellowstonegames.text.MarkovChar
-
Map of all pairs of chars encountered to the position in the order they were encountered.
- pairs - Variable in class com.github.yellowstonegames.text.MarkovText
-
Map of all pairs of words encountered to the position in the order they were encountered.
- phoneticHash64(char[], int, int) - Static method in class com.github.yellowstonegames.text.Translator
-
Gets a phonetic hash of a section of
databetweenstartinclusive andendexclusive; this 64-bit hash should be similar for similar words, instead of very different if they are different at all. - plantTermShuffler - Variable in class com.github.yellowstonegames.text.Thesaurus
- potionTermShuffler - Variable in class com.github.yellowstonegames.text.Thesaurus
- printCategories(boolean) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Prints out all of the categories this knows and then all of the terms this knows, optionally using HTML list formatting.
- process(CharSequence) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Given a String, StringBuilder, or other CharSequence that should contain words this knows synonyms for, this replaces each occurrence of such a known word with one of its synonyms, leaving unknown words untouched.
- processed - Variable in class com.github.yellowstonegames.text.MarkovChar
-
Complicated data that mixes probabilities of chars using their indices in
MarkovChar.charsand the indices of char pairs inMarkovChar.pairs, generated during the latest call toMarkovChar.analyze(CharSequence). - processed - Variable in class com.github.yellowstonegames.text.MarkovText
-
Complicated data that mixes probabilities of words using their indices in
MarkovText.wordsand the indices of word pairs inMarkovText.pairs, generated during the latest call toMarkovText.analyze(CharSequence). - pronoun - Variable in class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- Pronoun - Enum Class in com.github.yellowstonegames.text
-
Properties of nouns needed to correctly conjugate those nouns and refer to them with pronouns, such as genders.
R
- randomLanguage(long) - Static method in class com.github.yellowstonegames.text.Language
- randomLanguage(EnhancedRandom) - Static method in class com.github.yellowstonegames.text.Language
- randomLanguages - Variable in class com.github.yellowstonegames.text.Thesaurus
- REDUCE_ACCENTS - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
Replaces any characters this can produce that aren't in ASCII or Latin-1 with Latin-script stand-ins; this will often use accented characters, but will only use those present in Latin-1 (which many fonts support).
- refresh(long) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Changes the sequences for all groups of synonyms this can produce, effectively turning this Thesaurus into a different version that knows all the same synonyms and categories but will produce different results.
- refresh(long...) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Changes the sequences for all groups of synonyms this can produce, effectively turning this Thesaurus into a different version that knows all the same synonyms and categories but will produce different results.
- refresh(long, long) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Changes the sequences for all groups of synonyms this can produce, effectively turning this Thesaurus into a different version that knows all the same synonyms and categories but will produce different results.
- refresh(long, long, long) - Method in class com.github.yellowstonegames.text.Thesaurus
-
Changes the sequences for all groups of synonyms this can produce, effectively turning this Thesaurus into a different version that knows all the same synonyms and categories but will produce different results.
- registered - Static variable in class com.github.yellowstonegames.text.Language
-
An array that stores all the hand-made Language constants; it does not store randomly-generated languages nor does it store modifications or mixes of languages.
- registeredNames - Static variable in class com.github.yellowstonegames.text.Language
- removeAccents() - Method in class com.github.yellowstonegames.text.Language
-
Useful for cases with limited fonts, this produces a new Language like this one but with all accented characters removed (including almost all non-ASCII Latin-alphabet characters, but only some Greek and Cyrillic characters).
- removeAccents(CharSequence) - Static method in class com.github.yellowstonegames.text.Language
-
Removes accented Latin-script characters from a string; if the "base" characters are non-English anyway then the result won't be an ASCII string, but otherwise it probably will be.
- removeModifiers() - Method in class com.github.yellowstonegames.text.Language
-
Creates a copy of this Language with no modifiers.
- repeats - Static variable in class com.github.yellowstonegames.text.Language
- replaceCost - Variable in class com.github.yellowstonegames.text.StringDistance
-
The cost to change one char in source to any other at the same position, on the way to target.
- replacement - Variable in class com.github.yellowstonegames.text.Language.Alteration
- replacementTable(ObjectObjectOrderedMap) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Creates a Modifier that will replace the nth String key in map with the nth value.
- replacementTable(String...) - Static method in class com.github.yellowstonegames.text.Language.Modifier
-
Creates a Modifier that will replace the (n*2)th String in pairs with the (n*2+1)th value in pairs.
- replacer - Variable in class com.github.yellowstonegames.text.Language.Alteration
- reverse - Variable in class com.github.yellowstonegames.text.Translator
-
The mapping of lower-case word keys to lower-case word values, where keys are in the source language and values are generated by language.
- rng - Variable in class com.github.yellowstonegames.text.Language.SentenceForm
- rng - Variable in class com.github.yellowstonegames.text.Thesaurus
- romanizedHumanLanguages - Static variable in class com.github.yellowstonegames.text.Language
-
Language constants that are meant to sound like specific real-world languages, and that all use the Latin script (like English) with maybe some accents.
- romanizedLanguages - Static variable in class com.github.yellowstonegames.text.Language
-
Language constants that could sound like real-world languages or completely fictional ones, but that all use the Latin script (like English) with maybe some accents.
- RUSSIAN_AUTHENTIC - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation modern Russian, using the authentic Cyrillic alphabet used in Russia and other countries.
- RUSSIAN_ROMANIZED - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation modern Russian, romanized to use the Latin alphabet.
S
- sanityChecks - Variable in class com.github.yellowstonegames.text.Language
- SECOND_PERSON_PLURAL - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
As in, "You are your own bosses." Doesn't reference gender, and applies to groups.
- SECOND_PERSON_SINGULAR - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
As in, "You are your own boss." Doesn't reference gender.
- sentence() - Method in class com.github.yellowstonegames.text.Language.SentenceForm
-
Generates a pseudo-random sentence using the configured Language, punctuation, min/max word length, and maximum char length.
- sentence(int, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language, using and changing the current seed, with the length in words between minWords and maxWords, both inclusive.
- sentence(int, int, String[], String[], double) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language, using and changing the current seed.
- sentence(int, int, String[], String[], double, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language that fits in the given length limit.
- sentence(long, int, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language, using the given seed as a long, with the length in words between minWords and maxWords, both inclusive.
- sentence(long, int, int, String[], String[], double) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language, using the given seed as a long.
- sentence(long, int, int, String[], String[], double, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language that fits in the given length limit, using the given seed as a long.
- sentence(EnhancedRandom, int, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language, using the given RNG, with the length in words between minWords and maxWords, both inclusive.
- sentence(EnhancedRandom, int, int, String[], String[], double) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language using the specific RNG.
- sentence(EnhancedRandom, int, int, String[], String[], double, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a sentence from this Language using the given RNG that fits in the given length limit.
- SentenceForm() - Constructor for class com.github.yellowstonegames.text.Language.SentenceForm
-
Builds a SentenceForm with all default fields, using
Language.FANTASY_NAMEfor a language, using between 1 and 9 words in a sentence, and otherwise defaulting to howSentenceForm(Language, int, int)behaves. - SentenceForm(Language, int, int) - Constructor for class com.github.yellowstonegames.text.Language.SentenceForm
-
Builds a SentenceForm with only a few fields specified.
- SentenceForm(Language, int, int, String[], String[], double) - Constructor for class com.github.yellowstonegames.text.Language.SentenceForm
-
Builds a SentenceForm with all fields specified except for
Language.SentenceForm.rng, which will be made based on Language's staticLanguage.srngfield, and maxChars, which means the sentence length will be limited only by maxWords and the length of words produced. - SentenceForm(Language, int, int, String[], String[], double, int) - Constructor for class com.github.yellowstonegames.text.Language.SentenceForm
-
Builds a SentenceForm with all fields specified except for
Language.SentenceForm.rng, which will be made based on Language's staticLanguage.srngfield. - SentenceForm(Language, EnhancedRandom, int, int, String[], String[], double, int) - Constructor for class com.github.yellowstonegames.text.Language.SentenceForm
-
Builds a SentenceForm with all fields specified; each value is referenced directly except for
rng, which will be copied to get the EnhancedRandom used internally. - setCacheLevel(int) - Method in class com.github.yellowstonegames.text.Translator
- shift - Variable in class com.github.yellowstonegames.text.Translator
- similarFinder - Static variable in class com.github.yellowstonegames.text.Thesaurus
- SIMPLIFY_NORSE - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
Removes accented letters and the two non-English consonants from text generated with
Language.NORSE. - SIMPLISH - Static variable in class com.github.yellowstonegames.text.Language
-
English-like language that omits complex spelling and doesn't include any of the uncommon word endings of English like "ought" or "ation." A good choice when you want something that doesn't use any non-US-keyboard letters, looks somewhat similar to English, and tries to be pronounceable without too much effort.
- SOMALI - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation Somali, using the Latin alphabet.
- SPANISH - Static variable in class com.github.yellowstonegames.text.Language
-
Imitation text from an approximation of Spanish (not using the variations spoken in Spain, but closer to Latin American forms of Spanish).
- SPECIAL_CASE_GENDER - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
Unpronounceable words that can be processed specially for more complex cases of pronoun preference.
- SPLIT_LIGATURES - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
Simple changes to merge "æ" into "ae", "œ" into "oe", and "ǽ" into "áe".
- srng - Static variable in class com.github.yellowstonegames.text.Language
- sssText() - Method in enum class com.github.yellowstonegames.text.Pronoun
- ssText() - Method in enum class com.github.yellowstonegames.text.Pronoun
- STAR_WARS_STYLE_NAMES - Static variable in class com.github.yellowstonegames.text.NameGenerator
- sText() - Method in enum class com.github.yellowstonegames.text.Pronoun
- stringDeserialize(String) - Static method in class com.github.yellowstonegames.text.Language.Alteration
- stringDeserialize(String) - Static method in class com.github.yellowstonegames.text.Language.Modifier
- stringDeserialize(String) - Static method in class com.github.yellowstonegames.text.Language.SentenceForm
- stringDeserialize(String) - Static method in class com.github.yellowstonegames.text.Language
- stringDeserialize(String) - Static method in class com.github.yellowstonegames.text.MarkovChar
-
Recreates an already-analyzed MarkovChar given a String produced by
MarkovChar.stringSerialize(). - stringDeserialize(String) - Static method in class com.github.yellowstonegames.text.MarkovText
-
Recreates an already-analyzed MarkovText given a String produced by
MarkovText.stringSerialize(). - StringDistance - Class in com.github.yellowstonegames.text
-
Estimates how different two String inputs are.
- StringDistance() - Constructor for class com.github.yellowstonegames.text.StringDistance
-
Default constructor; sets all costs to 1.
- StringDistance(int, int, int, int) - Constructor for class com.github.yellowstonegames.text.StringDistance
-
Used to customize the costs of different modifications.
- stringSerialize() - Method in class com.github.yellowstonegames.text.Language.Alteration
- stringSerialize() - Method in class com.github.yellowstonegames.text.Language.Modifier
- stringSerialize() - Method in class com.github.yellowstonegames.text.Language.SentenceForm
- stringSerialize() - Method in class com.github.yellowstonegames.text.Language
- stringSerialize() - Method in class com.github.yellowstonegames.text.MarkovChar
-
Returns a representation of this MarkovChar as a String; use
MarkovChar.stringDeserialize(String)to get a MarkovChar back from this String. - stringSerialize() - Method in class com.github.yellowstonegames.text.MarkovText
-
Returns a representation of this MarkovText as a String; use
MarkovText.stringDeserialize(String)to get a MarkovText back from this String. - STUTTER - Static variable in class com.github.yellowstonegames.text.Language.Modifier
-
For a character who has a 20% chance to repeat a starting consonant or vowel.
- summary - Variable in class com.github.yellowstonegames.text.Language
- SWAHILI - Static variable in class com.github.yellowstonegames.text.Language
-
Swahili is one of the more commonly-spoken languages in sub-Saharan Africa, and serves mainly as a shared language that is often learned after becoming fluent in one of many other (vaguely-similar) languages of the area.
- swapCost - Variable in class com.github.yellowstonegames.text.StringDistance
-
The cost to switch the positions of two adjacent chars in source on the way to target.
- syllableBias - Variable in class com.github.yellowstonegames.text.Language
- syllableEndFrequency - Variable in class com.github.yellowstonegames.text.Language
- syllableFrequencies - Variable in class com.github.yellowstonegames.text.Language
T
- table - Variable in class com.github.yellowstonegames.text.Translator
-
The mapping of lower-case word keys to lower-case word values, where keys are in the source language and values are generated by language.
- term - Variable in class com.github.yellowstonegames.text.Messaging.BeingSubstitution
- Thesaurus - Class in com.github.yellowstonegames.text
-
A text processing class that can swap out occurrences of special keywords and replace them with randomly-selected synonyms.
- Thesaurus() - Constructor for class com.github.yellowstonegames.text.Thesaurus
-
Constructs a new Thesaurus with an unseeded RNG used to shuffle word order.
- Thesaurus(long) - Constructor for class com.github.yellowstonegames.text.Thesaurus
-
Constructs a new Thesaurus, seeding its internal FlowRandom (used to shuffle word order) with shuffleSeed.
- Thesaurus(long, long) - Constructor for class com.github.yellowstonegames.text.Thesaurus
-
Constructs a new Thesaurus, seeding its FlowRandom (used to shuffle word order) with shuffleSeedA and shuffleSeedB.
- Thesaurus(EnhancedRandom) - Constructor for class com.github.yellowstonegames.text.Thesaurus
-
Constructs a new Thesaurus, seeding its internal FlowRandom (used to shuffle word order) with the next long from the given EnhancedRandom.
- Thesaurus(String) - Constructor for class com.github.yellowstonegames.text.Thesaurus
-
Constructs a new Thesaurus, seeding its FlowRandom (used to shuffle word order) with two different hashes of shuffleSeed (produced by
Hasher.sallosandHasher.sallos_). - toLongWordMnemonic(long, boolean) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Given any long, generates a short phrase that can be decoded back to the original long with
Mnemonic.fromWordMnemonic(String). - toMnemonic(long) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Given any long, generates a slightly-more-memorable gibberish phrase that can be decoded back to the original long with
Mnemonic.fromMnemonic(String). - toMnemonic(long, boolean) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Given any long, generates a slightly-more-memorable gibberish phrase that can be decoded back to the original long with
Mnemonic.fromMnemonic(String). - toString() - Method in class com.github.yellowstonegames.text.Language.Alteration
- toString() - Method in class com.github.yellowstonegames.text.Language.Modifier
- toString() - Method in class com.github.yellowstonegames.text.Language.SentenceForm
- toString() - Method in class com.github.yellowstonegames.text.Language
- totalSyllableFrequency - Variable in class com.github.yellowstonegames.text.Language
- toWordMnemonic(int, boolean) - Method in class com.github.yellowstonegames.text.Mnemonic
-
Given any int, generates a short phrase that can be decoded back to the original int with
Mnemonic.fromWordMnemonic(String). - transform(CharSequence, String[], Pronoun) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given group of users and that group's associated Pronoun.
- transform(CharSequence, String[], Pronoun, String[], Pronoun) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given array of users, that group's associated Pronoun, the given array of targets, and that group's Pronoun.
- transform(CharSequence, String[], Pronoun, String[], Pronoun, String...) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given array of users, that group's associated Pronoun, the given group of targets, and that group's Pronoun.
- transform(CharSequence, String[], Pronoun, String, Pronoun) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given array of users, that group's associated Pronoun, the given target, and their Pronoun.
- transform(CharSequence, String[], Pronoun, String, Pronoun, String...) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given array of users, that group's associated Pronoun, the given target, and their Pronoun.
- transform(CharSequence, String, Pronoun) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given user and their associated Pronoun.
- transform(CharSequence, String, Pronoun, String[], Pronoun) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given user, that user's associated Pronoun, the given array of targets, and that group's Pronoun.
- transform(CharSequence, String, Pronoun, String[], Pronoun, String...) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given user, that user's associated Pronoun, the given array of targets, and that group's Pronoun.
- transform(CharSequence, String, Pronoun, String, Pronoun) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given user, their associated Pronoun, the given target, and their Pronoun.
- transform(CharSequence, String, Pronoun, String, Pronoun, String...) - Static method in class com.github.yellowstonegames.text.Messaging
-
Takes message and replaces any of the special terms this recognizes, like @, ^, and $, with the appropriately- conjugated terms for the given user, their associated Pronoun, the given target, and their Pronoun.
- Translator - Class in com.github.yellowstonegames.text
-
Class that builds up a dictionary of words in an English-language source text to words generated by a
Language, and can translate a source text to a similarly-punctuated, similarly-capitalized fake text; it will try to use variants on the translation of the same root word when it encounters conjugations of that root word or that root word with common English prefixes/suffixes. - Translator() - Constructor for class com.github.yellowstonegames.text.Translator
-
Constructs a Translator that will generate simplified English-like text by default (this uses
Language.SIMPLISH). - Translator(Language) - Constructor for class com.github.yellowstonegames.text.Translator
-
Constructs a Translator that will use the given style of language generator to produce its text.
- Translator(Language, long) - Constructor for class com.github.yellowstonegames.text.Translator
-
Constructs a Translator that will use the given style of language generator to produce its text, using the specified
shiftas a long to modify the generated words from the language's normal results. - Translator(Language, long, int, Map, Map) - Constructor for class com.github.yellowstonegames.text.Translator
-
Constructs a Translator that will use the given style of language generator to produce its text, using the specified
shiftas a long to modify the generated words from the language's normal results, has the specified cache level, and already has a lookup table and reverse for that populated. - Translator(Translator) - Constructor for class com.github.yellowstonegames.text.Translator
-
Copies another Translator and constructs this one with the information in the other.
U
- UNSPECIFIED_GENDER - Enum constant in enum class com.github.yellowstonegames.text.Pronoun
-
"Singular they" pronoun preference or to be used when preference is unknown, as in "They are their own boss."
name/name_s/i/me/my/mine/myself
Name/Name's/they/them/their/theirs/themself "^i hurr^$$$" becomes "they hurry". - usiText() - Method in enum class com.github.yellowstonegames.text.Pronoun
V
- valueOf(String) - Static method in enum class com.github.yellowstonegames.text.Pronoun
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.yellowstonegames.text.Pronoun
-
Returns an array containing the constants of this enum class, in the order they are declared.
- vegetableTermShuffler - Variable in class com.github.yellowstonegames.text.Thesaurus
- VIETNAMESE - Static variable in class com.github.yellowstonegames.text.Language
-
A very rough imitation of the Vietnamese language, without using the accurate characters Vietnamese really uses but that are rare in fonts.
- VIKING_STYLE_NAMES - Static variable in class com.github.yellowstonegames.text.NameGenerator
- vowelClusters - Static variable in class com.github.yellowstonegames.text.Language
- vowelEndFrequency - Variable in class com.github.yellowstonegames.text.Language
- vowelSplitFrequency - Variable in class com.github.yellowstonegames.text.Language
- vowelSplitters - Variable in class com.github.yellowstonegames.text.Language
- vowelStartFrequency - Variable in class com.github.yellowstonegames.text.Language
W
- word(boolean) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language, using and changing the current seed.
- word(long, boolean) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language using the specified long seed to use for a shared StatefulRNG.
- word(long, boolean, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language with an approximate number of syllables using the specified long seed to use for a shared StatefulRNG.
- word(long, boolean, int, Pattern[]) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language with an approximate number of syllables using the specified long seed to use for a shared StatefulRNG.
- word(EnhancedRandom, boolean) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language using the specified RNG.
- word(EnhancedRandom, boolean, int) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language using the specified RNG with an approximate number of syllables.
- word(EnhancedRandom, boolean, int, Pattern[]) - Method in class com.github.yellowstonegames.text.Language
-
Generate a word from this Language using the specified RNG with an approximate number of syllables.
- wordMatch - Static variable in class com.github.yellowstonegames.text.Thesaurus
- words - Variable in class com.github.yellowstonegames.text.MarkovText
-
All words (case-sensitive and counting some punctuation as part of words) that this encountered during the latest call to
MarkovText.analyze(CharSequence).
Z
- ZOMBIE - Static variable in class com.github.yellowstonegames.text.Thesaurus
-
Thesaurus preset that sharply reduces the used letters to only: a, b, g, h, m, n, r, and z.
All Classes and Interfaces|All Packages|Constant Field Values