NaNoGenMo / 2017

National Novel Generation Month, 2017 edition.
https://nanogenmo.github.io
185 stars 7 forks source link

Nonsense Language Author #108

Open superbiasedman opened 6 years ago

superbiasedman commented 6 years ago

Hello! I heard about this the other week and pretty quickly started out on an idea but I hadn't posted yet.

My idea is a fairly basic one. The book is generated of nonsense words made up by a script. It uses a weighted set of characters as well as word, sentence and paragraph lengths to make things that look approximately like real words but read as pure gibberish.

After getting the basics of it working, I've been adding code so that it can parse a source text file and read the frequency of characters from the source as well as other data to replicate when it generates its own nonsense book.

I had to hardcode in certain rules to make it behave decently, but it's working relatively well and I hope to tweak and play with it more to read more diverse sources as well as tidying up a bit. But you can see the current state of it here:

https://github.com/superbiasedman/NonsenseLanguageAuthor

There's sample output available here:

https://github.com/superbiasedman/NonsenseLanguageAuthor/blob/master/output.txt

(though it doesn't retain the formatting properly)

hugovk commented 6 years ago

Here's a preview:

Aear aiuevf "deyouae hao" nie; weoeamo leseaoiao adaoaeaoty hamh eoeie "oaesu de uhkiatow" uawu yieuioegw tea| oai: et oal euydt vuartap hreai koen teaoit oioedaij (oemsega efeisp oie at) rooaur itio.

Beranfup enh "Ruew eirisl; so- a" di aeso ors a ie tre eirisl tinu mat ni Gifo; eauid apao loeneia titc [i a iet] ie tse te uir oum ae miayveroc oeusaie iue ioeieaneit ors rowp whaseoirh iidnrao rameueo ao- rte ioag: afaita teaoit suoeatpi e hamh hiho haie Gifo& sisum ieu shease goedr Nsev oen oyekdl asgeteomeoh adaoaeaoty [erfae oot uwea mu] oucut rou eodom diboriao Ia "o de weotae" teyd asgeteomeoh bi e on iw ea goyua tiwe sun- efa ieâil ur: Soliet gekr eu yaew.

Aou dcea hap hnot iatoh tdefed eioasef reheot oyeas goidr uwiae iela utu isaeka des a.

Iea leoc earugae a se sero erfae anwieoaoohag ea u i neae o qcope weo meoive wetu soayiet petoena nmaoieda ma elauht hraino ie aoei fmeuge hsi o foetf/ hreai haie eaioa cgu ratd tbas: ipeseamf ratwoeete igsetarsine mhaeha zapai to gatai e a.

enkiv2 commented 6 years ago

Nice!

On Thu, Nov 23, 2017 at 1:34 PM Hugo notifications@github.com wrote:

Here's a preview:

Aear aiuevf "deyouae hao" nie; weoeamo leseaoiao adaoaeaoty hamh eoeie "oaesu de uhkiatow" uawu yieuioegw tea| oai: et oal euydt vuartap hreai koen teaoit oioedaij (oemsega efeisp oie at) rooaur itio.

Beranfup enh "Ruew eirisl; so- a" di aeso ors a ie tre eirisl tinu mat ni Gifo; eauid apao loeneia titc [i a iet] ie tse te uir oum ae miayveroc oeusaie iue ioeieaneit ors rowp whaseoirh iidnrao rameueo ao- rte ioag: afaita teaoit suoeatpi e hamh hiho haie Gifo& sisum ieu shease goedr Nsev oen oyekdl asgeteomeoh adaoaeaoty [erfae oot uwea mu] oucut rou eodom diboriao Ia "o de weotae" teyd asgeteomeoh bi e on iw ea goyua tiwe sun- efa ieâil ur: Soliet gekr eu yaew.

Aou dcea hap hnot iatoh tdefed eioasef reheot oyeas goidr uwiae iela utu isaeka des a.

Iea leoc earugae a se sero erfae anwieoaoohag ea u i neae o qcope weo meoive wetu soayiet petoena nmaoieda ma elauht hraino ie aoei fmeuge hsi o foetf/ hreai haie eaioa cgu ratd tbas: ipeseamf ratwoeete igsetarsine mhaeha zapai to gatai e a.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NaNoGenMo/2017/issues/108#issuecomment-346680434, or mute the thread https://github.com/notifications/unsubscribe-auth/AAd6GeL0o4lDhvlS83u313mvAnTCrkmVks5s5bqtgaJpZM4QjKJS .