-
Notifications
You must be signed in to change notification settings - Fork 2
zTest
Kevin Sacro edited this page Jun 18, 2024
·
19 revisions
- Syllabore is a procedural name generator that does not use pre-made lists of names
- It can be embedded into a .NET program or game, and used 100% offline
- Instantiate a
NameGenerator
class and make calls toNext()
to get new names
var g = new NameGenerator();
Console.WriteLine(g.Next());
- The generator above will return names like:
Pheras
Domar
Teso
- For simple generators, you can control vowels and consonants through the constructor:
var g = new NameGenerator("ae", "srnl");
- Names from this generator will only use
a
ande
for vowels, ands
r
n
andl
for consonants. Calls toNext()
will produce names like:
Lena
Salna
Rasse
- For more granular control, initialize a
SyllableGenerator
first.
// Insert an example here
Syllabore provides support for the following:
- Graphemes - a way to control whether your characters are lead a syllable, trail a syllable, form a clusters, etc.
- Transforms - a way to transform existing names into new ones
- Filters - a way to prevent substrings from appearing in names
- Weights - a way to manipulate the probability that specific characters will be used See the wiki for more examples on how to control things like vowel sequences, consonant positioning, and more!
For .NET apps, Syllabore is available as a NuGet package. You can install it from your NuGet package manager in Visual Studio (search for "Syllabore") or by running the following command in your NuGet package manager console:
Install-Package Syllabore
There are a couple ways to do this in Godot:
- Open your Godot project in Visual Studio and add the Syllabore NuGet package through the package manager
- Or open a command line,
cd
into your Godot project directory, and use the following command:
dotnet add package Syllabore
By design, Syllabore is a .NET Standard 2.0 class library. This means it will be compatible with a number of .NET distributions and game engines. See a complete list here.
MIT License
Copyright (c) 2019-2024 Kevin Sacro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.