I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.
I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.
So I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.
Note: I've tested it a bit, and it seems to be bug-free, but that doesn't mean it is. Apologies for any errors.
This is the code:
if the dictionary of syllables is located at 'dict.txt'.
Here's an example dictionary file:
a|1|1|b,2;c,2
b|0|3|a,0;c,2
c|0|0|a,1;b,1
a|1|1|b,2;c,2 b|0|3|a,0;c,2 c|0|0|a,1;b,1
Start:
a : 100%
Connections:
a:
c : 40%
b : 40%
[end] : 20%
c:
a : 50%
b : 50%
[end] : 0%
b:
c : 40%
[end] : 60%
(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)
Start: a : 100% Connections: a: c : 40% b : 40% [end] : 20% c: a : 50% b : 50% [end] : 0% b: c : 40% [end] : 60%
So I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.
Note: I've tested it a bit, and it seems to be bug-free, but that doesn't mean it is. Apologies for any errors.
This is the code:
if the dictionary of syllables is located at 'dict.txt'. Here's an example dictionary file:
a|1|1|b,2;c,2
b|0|3|a,0;c,2
c|0|0|a,1;b,1
Start:
a : 100%
Connections:
a:
c : 40%
b : 40%
[end] : 20%
c:
a : 50%
b : 50%
[end] : 0%
b:
c : 40%
[end] : 60%
(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)
I recently wrote a name generator that uses a DTMC underneath (I asked about it here) and, since I'm not entirely confident I did it right, I wrote a script to check my code, or at least its output.
if the dictionary of syllables is located at 'dict.txt'.
Here's an example dictionary file:
a|1|1|b,2;c,2 b|0|3|a,0;c,2 c|0|0|a,1;b,1
Start: a : 100% Connections: a: c : 40% b : 40% [end] : 20% c: a : 50% b : 50% [end] : 0% b: c : 40% [end] : 60%
Or, if you prefer GitHub, you can see it here
This is the name generator; this script is meant to be used something like this (on Windows, at least):
(Also if anyone has ideas for other related scripts to write, please comment -- with this done, I'm out of ideas for coding things)
For anyone interested, the final code is available here .