feat(xanthous): Add a generator for random english syllables
Add a new "speech" generator module, with the beginnings of the vague definition of the phonotactics of the language (there's one in here for English based on the wikipedia article for English phonology, but it's less than ideal as it has generated words like "sprurlkt") and the ability to generate random syllables of a language by picking an onset, nucleus, and coda from the list for that language (within a range of the number of allowed of each syllable part). This will be used down the road to automatically generate utterances from various non-english-speaking creatures (so the accuracy is less important, just that it "feels real"). Change-Id: I7b81375ec595239c05c5c800cbde1a2a900e38ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/3202 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
006e5231e5
commit
2cfe4069bb
7 changed files with 216 additions and 26 deletions
|
|
@ -1,17 +1,17 @@
|
|||
{ mkDerivation, aeson, array, async, base, bifunctors, brick
|
||||
, checkers, classy-prelude, comonad, comonad-extras, constraints
|
||||
, containers, criterion, data-default, deepseq, directory, fgl
|
||||
, fgl-arbitrary, file-embed, filepath, generic-arbitrary
|
||||
, generic-lens, groups, hgeometry, hgeometry-combinatorial, hpack
|
||||
, JuicyPixels, lens, lens-properties, lib, lifted-async, linear
|
||||
, megaparsec, mmorph, monad-control, MonadRandom, mtl
|
||||
, optparse-applicative, parallel, parser-combinators, pointed
|
||||
, QuickCheck, quickcheck-instances, quickcheck-text, random
|
||||
, random-extras, random-fu, random-source, Rasterific
|
||||
, raw-strings-qq, reflection, semigroupoids, semigroups, splitmix
|
||||
, stache, streams, tasty, tasty-hunit, tasty-quickcheck, text
|
||||
, text-zipper, tomland, transformers, vector, vty, witherable, yaml
|
||||
, zlib
|
||||
, containers, criterion, data-default, data-interval, deepseq
|
||||
, directory, fgl, fgl-arbitrary, file-embed, filepath
|
||||
, generic-arbitrary, generic-lens, groups, hgeometry
|
||||
, hgeometry-combinatorial, hpack, JuicyPixels, lens
|
||||
, lens-properties, lib, lifted-async, linear, megaparsec, mmorph
|
||||
, monad-control, MonadRandom, mtl, optparse-applicative, parallel
|
||||
, parser-combinators, pointed, QuickCheck, quickcheck-instances
|
||||
, quickcheck-text, random, random-extras, random-fu, random-source
|
||||
, Rasterific, raw-strings-qq, reflection, semigroupoids, semigroups
|
||||
, splitmix, stache, streams, tasty, tasty-hunit, tasty-quickcheck
|
||||
, text, text-zipper, tomland, transformers, vector, vty, witherable
|
||||
, yaml, zlib
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "xanthous";
|
||||
|
|
@ -22,8 +22,8 @@ mkDerivation {
|
|||
libraryHaskellDepends = [
|
||||
aeson array async base bifunctors brick checkers classy-prelude
|
||||
comonad comonad-extras constraints containers criterion
|
||||
data-default deepseq directory fgl fgl-arbitrary file-embed
|
||||
filepath generic-arbitrary generic-lens groups hgeometry
|
||||
data-default data-interval deepseq directory fgl fgl-arbitrary
|
||||
file-embed filepath generic-arbitrary generic-lens groups hgeometry
|
||||
hgeometry-combinatorial JuicyPixels lens lifted-async linear
|
||||
megaparsec mmorph monad-control MonadRandom mtl
|
||||
optparse-applicative parallel parser-combinators pointed QuickCheck
|
||||
|
|
@ -36,8 +36,8 @@ mkDerivation {
|
|||
executableHaskellDepends = [
|
||||
aeson array async base bifunctors brick checkers classy-prelude
|
||||
comonad comonad-extras constraints containers criterion
|
||||
data-default deepseq directory fgl fgl-arbitrary file-embed
|
||||
filepath generic-arbitrary generic-lens groups hgeometry
|
||||
data-default data-interval deepseq directory fgl fgl-arbitrary
|
||||
file-embed filepath generic-arbitrary generic-lens groups hgeometry
|
||||
hgeometry-combinatorial JuicyPixels lens lifted-async linear
|
||||
megaparsec mmorph monad-control MonadRandom mtl
|
||||
optparse-applicative parallel parser-combinators pointed QuickCheck
|
||||
|
|
@ -49,8 +49,8 @@ mkDerivation {
|
|||
testHaskellDepends = [
|
||||
aeson array async base bifunctors brick checkers classy-prelude
|
||||
comonad comonad-extras constraints containers criterion
|
||||
data-default deepseq directory fgl fgl-arbitrary file-embed
|
||||
filepath generic-arbitrary generic-lens groups hgeometry
|
||||
data-default data-interval deepseq directory fgl fgl-arbitrary
|
||||
file-embed filepath generic-arbitrary generic-lens groups hgeometry
|
||||
hgeometry-combinatorial JuicyPixels lens lens-properties
|
||||
lifted-async linear megaparsec mmorph monad-control MonadRandom mtl
|
||||
optparse-applicative parallel parser-combinators pointed QuickCheck
|
||||
|
|
@ -63,8 +63,8 @@ mkDerivation {
|
|||
benchmarkHaskellDepends = [
|
||||
aeson array async base bifunctors brick checkers classy-prelude
|
||||
comonad comonad-extras constraints containers criterion
|
||||
data-default deepseq directory fgl fgl-arbitrary file-embed
|
||||
filepath generic-arbitrary generic-lens groups hgeometry
|
||||
data-default data-interval deepseq directory fgl fgl-arbitrary
|
||||
file-embed filepath generic-arbitrary generic-lens groups hgeometry
|
||||
hgeometry-combinatorial JuicyPixels lens lifted-async linear
|
||||
megaparsec mmorph monad-control MonadRandom mtl
|
||||
optparse-applicative parallel parser-combinators pointed QuickCheck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue