initial import
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
### Gnomish
|
||||
|
||||
Several distinct dialects of Gnomish exist; a provincial Rock Gnome may not
|
||||
understand a Forest Gnome at all! This is "Golden Gnomish," the mother tongue
|
||||
of these localized variants, and functions much like Common -- a trader's
|
||||
tongue of common understanding.
|
||||
|
||||
*Nuio duy lao guey houe lo nouo, pia roa tai.*
|
||||
|
||||
**Gnomish Names:**
|
||||
* Fuey Voii
|
||||
* Juio See
|
||||
* Tuai Reaa
|
||||
@@ -0,0 +1,7 @@
|
||||
"""
|
||||
Gnomish
|
||||
"""
|
||||
from .base import Language
|
||||
from .names import Name, NobleName
|
||||
|
||||
__all__ = [Language, Name, NobleName]
|
||||
@@ -0,0 +1,48 @@
|
||||
from language import defaults, types
|
||||
|
||||
from .rules import rules
|
||||
|
||||
consonants = types.WeightedSet(
|
||||
("b", 0.5),
|
||||
("d", 0.5),
|
||||
("f", 0.3),
|
||||
("g", 0.3),
|
||||
("h", 0.5),
|
||||
("j", 0.2),
|
||||
("l", 1.0),
|
||||
("m", 0.5),
|
||||
("n", 1.0),
|
||||
("p", 0.5),
|
||||
("r", 1.0),
|
||||
("s", 1.0),
|
||||
("t", 1.0),
|
||||
("v", 0.3),
|
||||
("w", 0.2),
|
||||
("z", 0.1),
|
||||
)
|
||||
|
||||
suffixes = types.equal_weights(
|
||||
[
|
||||
"a",
|
||||
"e",
|
||||
"i",
|
||||
"o",
|
||||
"y",
|
||||
],
|
||||
1.0,
|
||||
blank=False,
|
||||
)
|
||||
|
||||
Language = types.Language(
|
||||
name="gnomish",
|
||||
vowels=defaults.vowels,
|
||||
consonants=consonants,
|
||||
prefixes=None,
|
||||
suffixes=suffixes,
|
||||
syllables=types.SyllableSet(
|
||||
(types.Syllable(template="consonant,vowel,vowel"), 1.0),
|
||||
(types.Syllable(template="consonant,vowel"), 0.33),
|
||||
),
|
||||
rules=rules,
|
||||
minimum_grapheme_count=2,
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
from language import types
|
||||
from language.languages.gnomish import Language
|
||||
|
||||
Name = types.NameGenerator(
|
||||
language=Language,
|
||||
templates=types.NameSet(
|
||||
(types.NameTemplate("name,surname"), 1.0),
|
||||
),
|
||||
)
|
||||
NobleName = Name
|
||||
@@ -0,0 +1,7 @@
|
||||
import logging
|
||||
|
||||
from language.rules import default_rules
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
rules = default_rules
|
||||
Reference in New Issue
Block a user