NaNoGenMo / 2017

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

Structuralist Random Writing #93

Open hbarnard opened 6 years ago

hbarnard commented 6 years ago

I have some very messy Python that:

One can mix and match, use old-fashioned vocabulary with the structure of an academic paper, for example. I've made a first attempt at making the application structure multilingual too. It will do 50K words at the moment. Here is a sample paragraph:

Years come. Each team under an first life began an land but five ran the safe who every baseball flew drove and. It has food outside until the flew as sick all long plants some. Sold a useful rubber above an town because him flew they around us asked farmer but him flew I away us may carry from each truck but. An years bought behind only less bell without up you sent an voice stood so bear top first insects forth told an coast what sent still early onto gray teeth upon us came all their bed inside fun eat us its here right bought live again back invented.

enkiv2 commented 6 years ago

This reminds me of Michael Paulukonis' PortSkyBot ( https://twitter.com/portskybot)

On Wed, Nov 8, 2017 at 10:51 AM Hugh Barnard notifications@github.com wrote:

I have some very messy Python that:

-

  1. Takes a text and analysis the syntax down to tags, so that there is the 'structure' of the text

  2. Strips and store vocabularies of texts

  3. Then writes 'prose' using the structure and vocabulary

One can mix and match, use old-fashioned vocabulary with the structure of an academic paper, for example. I've made a first attempt at making the application structure multilingual too. It will do 50K words at the moment. Here is a sample paragraph:

Years come. Each team under an first life began an land but five ran the safe who every baseball flew drove and. It has food outside until the flew as sick all long plants some. Sold a useful rubber above an town because him flew they around us asked farmer but him flew I away us may carry from each truck but. An years bought behind only less bell without up you sent an voice stood so bear top first insects forth told an coast what sent still early onto gray teeth upon us came all their bed inside fun eat us its here right bought live again back invented.

— 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/93, or mute the thread https://github.com/notifications/unsubscribe-auth/AAd6GY4-3_InHPW0WTBt_MXySP2F1Z2Pks5s0c3ngaJpZM4QWmFC .

hbarnard commented 6 years ago

Thanks, now have a repository of rather sh** code at https://github.com/hbarnard/nanogenmo-2017. There's an example generated story in en/stories. I will write some minimal documentation in the next couple of days too.

hugovk commented 6 years ago

curl https://raw.githubusercontent.com/hbarnard/nanogenmo-2017/master/en/stories/test12017-11-09-14-13-30.txt | wc -w gives 29,685 words. Can you get it to 50k?

hbarnard commented 6 years ago

Hi Hugo, Yes certainly, however there would be some 'non-artistic' (haha) repetition since I would just increase loop count, for example. So I can have it to 50K by the end of the month, but I'd like to do that via an 'improved' version (actual nearly anything is an improvement at this stage). Best Hugh

hugovk commented 6 years ago

Good stuff, plenty of time to go!

hbarnard commented 6 years ago

I am now at 51k and working on 'improvements' and a little bit of doc. The API doc for textblob (main tool used) is already in the doc folder.

hbarnard commented 6 years ago

Ok have now upgraded the parsing part to use spacy instead of TextBlob. There's a pretty good README and a test story in en/stories. I think I'm done, because I'm busy now. I had fun

hugovk commented 6 years ago

Great! Have a "completed" label!

hbarnard commented 6 years ago

Thanks Hugo, was fun to do, if a bit thin (wasn't aware of it until very late) on my part. Next year I'll try and persuade some of computer science students in Birkbeck to take a bash at it, too. Best regards Hugh

On 27 November 2017 at 21:55, Hugo notifications@github.com wrote:

Great! Have a "completed" label!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NaNoGenMo/2017/issues/93#issuecomment-347341498, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWPw9-l58ydWEDfjmXnvdKcAVq_oethks5s6y-3gaJpZM4QWmFC .