Package | Description |
---|---|
squidpony |
Utilities that don't fit elsewhere in SquidLib; mostly text manipulation, compression, and helper code.
|
Modifier and Type | Field and Description |
---|---|
NaturalLanguageCipher |
ProceduralMessaging.language |
Modifier and Type | Method and 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 to
NaturalLanguageCipher(FakeLanguageGen, long) . |
NaturalLanguageCipher |
NaturalLanguageCipher.learnTranslation(java.util.Map<java.lang.String,java.lang.String> vocabulary,
java.lang.String sourceWord)
Adds a translation pair to vocabulary so it can be used in decipher, giving a correct translation for sourceWord.
|
NaturalLanguageCipher |
NaturalLanguageCipher.learnTranslations(java.util.Map<java.lang.String,java.lang.String> vocabulary,
java.lang.Iterable<java.lang.String> sourceWords)
Adds translation pairs to vocabulary so it can be used in decipher, giving a correct translation for sourceWords.
|
NaturalLanguageCipher |
NaturalLanguageCipher.learnTranslations(java.util.Map<java.lang.String,java.lang.String> vocabulary,
java.lang.String... sourceWords)
Adds translation pairs to vocabulary so it can be used in decipher, giving a correct translation for sourceWords.
|
NaturalLanguageCipher |
NaturalLanguageCipher.mismatchTranslation(java.util.Map<java.lang.String,java.lang.String> vocabulary,
java.lang.String correctWord,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
void |
MarkovText.changeNames(NaturalLanguageCipher translator)
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 given NaturalLanguageCipher . |
void |
MarkovTextLimited.changeNames(NaturalLanguageCipher translator)
After calling
MarkovTextLimited.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 given NaturalLanguageCipher . |
Constructor and Description |
---|
NaturalLanguageCipher(NaturalLanguageCipher other)
Copies another NaturalLanguageCipher and constructs this one with the information in the other.
|
ProceduralMessaging(Thesaurus existingThesaurus,
NaturalLanguageCipher existingLanguage) |
Copyright © Eben Howard 2012–2022. All rights reserved.