- plain text
- chapter sections delineated by an asterix *
- chapter titles indicated by trailing underscore _
Returns array of text 'chunked' by various taxonomies ('iams' taxonomy returns all occurrences of capital I and next 2 words)
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
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 @
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)