Uses of Class
squidpony.NaturalLanguageCipher
Package | Description |
---|---|
squidpony |
Utilities that don't fit elsewhere in SquidLib; mostly text manipulation, compression, and helper code.
|
-
Uses of NaturalLanguageCipher in squidpony
Fields in squidpony declared as NaturalLanguageCipher Modifier and Type Field Description NaturalLanguageCipher
ProceduralMessaging. language
Methods in squidpony that return NaturalLanguageCipher Modifier and Type Method Description NaturalLanguageCipher
NaturalLanguageCipher. initialize(FakeLanguageGen language, long shift)
Changes the language this can cipher, clearing its known translation (if any) and using the given FakeLanguageGen and shift as if given toNaturalLanguageCipher(FakeLanguageGen, long)
.NaturalLanguageCipher
NaturalLanguageCipher. learnTranslation(Map<String,String> vocabulary, String sourceWord)
Adds a translation pair to vocabulary so it can be used in decipher, giving a correct translation for sourceWord.NaturalLanguageCipher
NaturalLanguageCipher. learnTranslations(Map<String,String> vocabulary, Iterable<String> sourceWords)
Adds translation pairs to vocabulary so it can be used in decipher, giving a correct translation for sourceWords.NaturalLanguageCipher
NaturalLanguageCipher. learnTranslations(Map<String,String> vocabulary, String... sourceWords)
Adds translation pairs to vocabulary so it can be used in decipher, giving a correct translation for sourceWords.NaturalLanguageCipher
NaturalLanguageCipher. mismatchTranslation(Map<String,String> vocabulary, String correctWord, String mismatchWord)
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.Methods in squidpony with parameters of type NaturalLanguageCipher Modifier and Type Method Description void
MarkovText. changeNames(NaturalLanguageCipher translator)
After callingMarkovText.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 givenNaturalLanguageCipher
.void
MarkovTextLimited. changeNames(NaturalLanguageCipher translator)
After callingMarkovTextLimited.analyze(CharSequence)
, you can optionally call this to alter any words in this MarkovTextLimited 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 givenNaturalLanguageCipher
.Constructors in squidpony with parameters of type NaturalLanguageCipher Constructor Description NaturalLanguageCipher(NaturalLanguageCipher other)
Copies another NaturalLanguageCipher and constructs this one with the information in the other.ProceduralMessaging(Thesaurus existingThesaurus, NaturalLanguageCipher existingLanguage)