Uses of Class
squidpony.FakeLanguageGen.Modifier
| Package | Description |
|---|---|
| squidpony |
Utilities that don't fit elsewhere in SquidLib; mostly text manipulation, compression, and helper code.
|
-
Uses of FakeLanguageGen.Modifier in squidpony
Fields in squidpony declared as FakeLanguageGen.Modifier Modifier and Type Field Description static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. DOUBLE_CONSONANTSFor a language that has a 50% chance to repeat a single consonant.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. DOUBLE_VOWELSFor 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 œ).static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. GENERAL_CLEANUPSome 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.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. HISSFor a character who always lengthens 's' and 'z' sounds not starting a word.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. LIGATURESSimple changes to merge "ae" into "æ", "oe" into "œ", and any of "aé", "áe", or "áé" into "ǽ".static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. LISPFor a character who always pronounces 's', 'ss', and 'sh' as 'th'.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. NO_DOUBLESFor a language that never repeats the same letter twice in a row.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. REDUCE_ACCENTSReplaces 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).static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. SIMPLIFY_NORSERemoves accented letters and the two non-English consonants from text generated withFakeLanguageGen.NORSE.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. STUTTERFor a character who has a 20% chance to repeat a starting consonant or vowel.Fields in squidpony with type parameters of type FakeLanguageGen.Modifier Modifier and Type Field Description ArrayList<FakeLanguageGen.Modifier>FakeLanguageGen. modifiersMethods in squidpony that return FakeLanguageGen.Modifier Modifier and Type Method Description static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. charReplacementTable(String initial, String change)Creates a Modifier that will replace the nth char in initial with the nth char in change.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. deserializeFromString(String data)static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. insertClosingConsonant(String insertion, double chance)Adds the potential for the Stringinsertionto 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.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. insertClosingVowel(String insertion, double chance)Adds the potential for the Stringinsertionto 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.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. insertConsonant(String insertion, double chance)Adds the potential for the Stringinsertionto 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.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. insertOpeningConsonant(String insertion, double chance)Adds the potential for the Stringinsertionto 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.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. insertOpeningVowel(String insertion, double chance)Adds the potential for the Stringinsertionto 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.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. insertVowel(String insertion, double chance)Adds the potential for the Stringinsertionto 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.static FakeLanguageGen.ModifierFakeLanguageGen. modifier(String pattern, String replacement)Convenience method that just callsModifier(String, String).static FakeLanguageGen.ModifierFakeLanguageGen. modifier(String pattern, String replacement, double chance)Convenience method that just callsModifier(String, String, double).static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. replacementTable(String... pairs)Creates a Modifier that will replace the (n*2)th String in pairs with the (n*2+1)th value in pairs.static FakeLanguageGen.ModifierFakeLanguageGen.Modifier. replacementTable(OrderedMap<String,String> map)Creates a Modifier that will replace the nth String key in map with the nth value.Methods in squidpony with parameters of type FakeLanguageGen.Modifier Modifier and Type Method Description FakeLanguageGenFakeLanguageGen. addModifiers(FakeLanguageGen.Modifier... mods)Adds the specified Modifier objects to a copy of this FakeLanguageGen and returns it.Method parameters in squidpony with type arguments of type FakeLanguageGen.Modifier Modifier and Type Method Description FakeLanguageGenFakeLanguageGen. addModifiers(Collection<FakeLanguageGen.Modifier> mods)Adds the specified Modifier objects from a Collection to a copy of this FakeLanguageGen and returns it.