{"id":17166737,"url":"https://github.com/willf/nanogenmo","last_synced_at":"2025-07-20T04:33:26.105Z","repository":{"id":11681183,"uuid":"14191797","full_name":"willf/NaNoGenMo","owner":"willf","description":"My contribution to \"generate a novel\" month","archived":false,"fork":false,"pushed_at":"2013-11-09T02:18:27.000Z","size":748,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-15T16:25:11.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-07T02:11:51.000Z","updated_at":"2018-12-19T19:19:17.000Z","dependencies_parsed_at":"2022-07-29T18:08:52.882Z","dependency_job_id":null,"html_url":"https://github.com/willf/NaNoGenMo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willf/NaNoGenMo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2FNaNoGenMo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2FNaNoGenMo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2FNaNoGenMo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2FNaNoGenMo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/NaNoGenMo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2FNaNoGenMo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067280,"owners_count":23871324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:06:30.718Z","updated_at":"2025-07-20T04:33:26.072Z","avatar_url":"https://github.com/willf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Novel generation\n----------------\n\nRequires Python, and the folloiwng modules: en (http://nodebox.net/code/index.php/Linguistics) and wordnik, and a Wordnik API key (http://developer.wordnik.com/).\n\nThe basic idea is to take text, for example, the text from 1984, and replace open class words (that is, \nfor my purposes, common nouns, verbs, adjectives and adverbs) with other words that occur in the same\ncontext, according to the Wordnik 'related words' API. I use NLTK to tag sentences with parts of speech,\nand then sometimes call Wordnik for more information. \n\nVersion 1: just call the Wordnik API\n\nVersion 2: don't call on BE and HAVE verbs; respect capitalization; better spacing\n\nVersion 3: respect plurals and verb forms\n\nVersion 4: only use words that are the same part of speech.\n\nTODO: fix a/an issues. \n\nTo use:\n-------\n\nText should have one paragraph per line. Then:\n\n    cat ../text/1984.txt python novel.py \n \nTested with Python 2.7.5.\n\nExample first paragraphs:\n\n\u003e It was a beautiful long man in April, and the clocks were striking thirteen. Winston Smith, his chest awed into his bosom in an succes to flight the contemptible shoot, rolled quickly through the cups rooms of Victory Mansions, though is quickly hold to become a ripple of oily powder from entering along with him.\n\n\u003e The bathroom smelt of boil mushroom and deal dirty cloaks. At one part of it a coloured cartoon, willy-nilly small for domestic screen, had do glued to the line. It depict frantic an gigantic shoulder, great than a couplet broad: the shoulder of a mind of about forty-five, with a slow small chin and ruggedly tall details. Winston take for the fightings. It was no application trying the elevator. Even at the excellent of times it was seldom urging, and at general the internal split was put off during sunset wives. It was part of the industry computer in plan for Dislike Week. The hard was seven missions up, and Winston, who was thirty-nine and had a distended edema above his way waist, sent simple, resting various times on the case. On each maneuvering, narrow the lift-shaft, the cartoon with the gigantic shoulder eyed from the line. It was one of those signs which are busta contrive that the faces follow you about when you shoot. BIG SOLDIER IS WATCHING YOU, the one-liner beneath it ran.\n\nAnd the famous slogans:\n\n\u003e WAR IS FREEDOM\n\u003e WEALTH IS LIBERTY\n\u003eSTUPIDITY IS KNOWLEDGE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fnanogenmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Fnanogenmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fnanogenmo/lists"}