Skip to content

clavis-magna/this-is-not-a-love-story

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this-is-not-a-love-story

Seed text formatting

  • plain text
  • chapter sections delineated by an asterix *
  • chapter titles indicated by trailing underscore _

Text Chunking api

Returns array of text 'chunked' by various taxonomies ('iams' taxonomy returns all occurrences of capital I and next 2 words)

acting upon the entire seed text

http://path-to-node-server:port/chunk?chunkType=*

  • chapertitle
  • chapter
  • sentence
  • phrase
  • word
  • iams
acting upon a single chapter chunk

http://path-to-node-server:port/chunk?chunktype=*&chapter=13

  • sentence
  • phrase
  • iams

Install & run

git clone https://github.com/clavis-magna/this-is-not-a-love-story.git

cd this-is-not-a-love-story

npm install

node bin/www  

chunking API now available @

http://localhost:3000/chunk

For twitter access you need to add a config file > 'config.js' in the root directory with twitter app keys

module.exports = {
    consumer_key: '...'
  , consumer_secret: '...'
  , access_token: '...'
  , access_token_secret: '...'
}

Then you can run http://localhost:3000/notlove.html (watch it being written in the browsers console, go and make it coffee, it will take some time, then write out the chapters to the browser)

About

nanogenmo-2014

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published