{"_id":"markov","_rev":"23-c630499909a2a76779d50ae70bec786e","name":"markov","description":"Silly markov chatbot module","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.1","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"expresso"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3"},"devDependencies":{"expresso":">=0.7.0"},"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"markov@0.0.1","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"dac20e8499ad75800bb1733f61a5b46bb26194b7","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.1.tgz","integrity":"sha512-KZphr+3i6OnDEpt0HO3SzvJEftaL229xcj6GHkFQHFrjTS8Aou9krq2J5MXPSPHkJba3ZshaxV/+N39p7HOtdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDp4Ih8cKOnjpPUi5rWUT3+IR2MTABMSW/8ujqQxfBRfQIgdtDApF2EmRCc2shlq7zM+5XT1vMbU/tK+Mq3nSqMasM="}]}},"0.0.2":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.2","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"expresso"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3"},"devDependencies":{"expresso":">=0.7.0"},"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"markov@0.0.2","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"12969350efffd51a247321320d6e5b2a79e45483","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.2.tgz","integrity":"sha512-57qPBUGCs+xY+X5V0XXR+v6bXeHv8/51jaqROlbI45DgbMWIwkh2D7VmdcVy29Oie9Q0gecDdDzQFxEzCMw5yQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICpGcIc4+Hd4LudkdN+jaBjefYx0z0xW6r+Z0kFsc2iwAiBZjLLrY14a/QrZJJQMq4MI6QxAhepuRuu/dbTF3ws85g=="}]}},"0.0.3":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.3","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"expresso"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3"},"devDependencies":{"expresso":">=0.7.0"},"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"markov@0.0.3","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"fe375c83ccc40ace9219e6dbe5054a64a2664ab8","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.3.tgz","integrity":"sha512-ri4RdvXYOzCcKkx2fChYApI322BZ012ZNRrKTlXR5liGX2Vu64U/FlW+Frj7FbZbjPx9KRGj4ovdGMIwUvDvbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTMfNB/iDjEdt7XW3K2xU7YtB4OGk8ueAr9D+5kqbO5QIgeVPcbr6lW2UrZO8hFsoAhTpNfq3eR3tz5JuwSAOCQFs="}]}},"0.0.4":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.4","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"expresso"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3"},"devDependencies":{"expresso":">=0.7.0"},"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"markov@0.0.4","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"f3235b39e7b4742dd5a5274d699af1f3279a168e","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.4.tgz","integrity":"sha512-JLWYSmMulrmp4lJ9rmolEHPOcdRxwJS4KluxWB+qWMsys79sLgDk0jnpEWUgcGrIMD5SbhHQgfGtWaZBL131bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFeErY6lYnnphi8+FCdOhBA//hOq6QlcEZADRTmhYXUAiB/UgQBazIFFsWWw/7QABhvEyf6lrpIfcViZSAfmnjZ5A=="}]}},"0.0.5":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.5","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"expresso"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3"},"devDependencies":{"expresso":">=0.7.0"},"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"markov@0.0.5","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"853490c05453fcf3ed05cbeecbe4ad430434c28d","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.5.tgz","integrity":"sha512-XbJav1W3DGNYFcjZRHI/EaGhGjde4WivWBW5XISP37yrVmtMPz2PZlcoSElSu17SfyA36J/oTTCBOhhg0VstNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTAQhvqjB8rBaslKqjNGtJ2GYXx5gOsmdpMr6XM6PqLAIhAPC8oc1VFC2nGFL6rKKSo6DoauokK+dlV/1K9c/A/JAL"}]}},"0.0.6":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.6","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"expresso"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3","hashish":">=0.0.2"},"devDependencies":{"expresso":">=0.7.0"},"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"_id":"markov@0.0.6","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"9f4c2118c8037fb5c474b8a08841e6afa964a055","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.6.tgz","integrity":"sha512-Ubqz0u9Sf6wLxIO4cm0V1QJYt9ZWKP2vjiKy/DaRgvWzvsECZ6QGSfUh70VKaHo9K74Ut5cbrYHj4MUKRc9yng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDffyk42gBRj9r9uf3NdIb3pU2e1eLI/2GkynBLbdAp4AIhAO71XZc0HYkdPVFjzptqijvRoONnzPzQR34gKEEgzIsb"}]}},"0.0.7":{"name":"markov","description":"Silly markov chatbot module","version":"0.0.7","repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"main":"./index.js","directories":{"lib":".","example":"./example"},"scripts":{"test":"tape test/*.js"},"engines":{"node":">=0.4.0"},"dependencies":{"deck":">=0.0.3","lazy":">=1.0.3","hashish":">=0.0.2"},"devDependencies":{"tape":"~1.1.1"},"license":"MIT","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"readme":"markov\n======\n\nGenerate markov chains for chatbots and freestyle rap contests.\n\nexamples\n========\n\nqwantz\n------\n\nqwantz.js:\n\n    var util = require('util');\n    var fs = require('fs');\n    \n    var markov = require('markov');\n    var m = markov(1);\n    \n    var s = fs.createReadStream(__dirname + '/qwantz.txt');\n    m.seed(s, function () {\n        var stdin = process.openStdin();\n        util.print('> ');\n        \n        stdin.on('data', function (line) {\n            var res = m.respond(line.toString()).join(' ');\n            console.log(res);\n            util.print('> ');\n        });\n    });\n\noutput:\n\n    $ node example/qwantz.js \n    > Hello friend.\n    Oh, that hurts me. How could fall apart, not unlike this tiny house. remains a danger when you? As I see him (quite often, Yes, As Thank I you? take have on! forgotten male, That oppression is is a A friend\n    > That is troubling news!\n    I've I had must to guard do against with such the a irony part of of their their fundamental fundamental injustices.\n    > Justice eh? SOMEBODY LIGHT UP THE BATSIGNAL\n    crazy I Utahraptor feel slipped alot in better! your about problems the put future! behind full You? of go My down perspective. The\n\nmethods\n=======\n\nmarkov(order)\n-------------\n\nCreate a new markov object of order `order`, which defaults to 2.\n\n.seed(s, cb)\n------------\n\nSeed the markov object with a string or stream `s`.\n\nIf `s` is a string, transition probabilities will be updated for every grouping\nof the previously specified order with dangling links at the front and end in\nthe appropriate direction.\n\nIf `s`s is a stream, data events will be line-buffered and fed into `.seed()` again\nline-by-line.\n\nIf `cb` is specified it will fire once the seed text is fully ingested.\n\n.search(text)\n-------------\n\nSearch for and return some key found in the text body `text`.\n\nReturn `undefined` if no matches were found.\n\n.pick()\n-------\n\nChoose a key at random.\n\n.next(key)\n----------\n\nFind a key likely to follow after `key`.\n\nReturns a hash with keys `key`, the canonical next key and `word`, a raw form of\n`key` as it appeared in the seed text.\n\n.prev(key)\n----------\n\nFind a key likely to come before `key`.\n\nReturns a hash with keys `key`, the canonical next key and `word`, a raw form of\n`key` as it appeared in the seed text.\n\n.forward(key, limit)\n--------------------\n\nGenerate a markov chain forward starting at `key` and returning an array of the\nraw word forms along the way.\n\nStop when the traversal hits a terminal entry or when limit words have been\ngenerated if limit is specified.\n\n.backward(key, limit)\n---------------------\n\nGenerate a markov chain backward starting at `key` and returning an array of the\nraw word forms along the way.\n\nStop when the traversal hits a terminal entry or when limit words have been\ngenerated if limit is specified.\n\n.fill(key, limit)\n-----------------\n\nGenerate a markov chain in both directions starting at `key`. Return an array of\nthe raw word forms along the way including the raw word form of the supplied\n`key`.\n\nStop when the traversal hits a terminal entry or when limit words have been\ngenerated if limit is specified.\n\n.respond(text, limit)\n---------------------\n\nSearch for a starting key in `text` and then call `.fill(key, limit)` on it.\n","readmeFilename":"README.markdown","bugs":{"url":"https://github.com/substack/node-markov/issues"},"_id":"markov@0.0.7","dist":{"shasum":"35ace82ae26133f719e1608d21f0cbc21452abe3","tarball":"https://registry.npmjs.org/markov/-/markov-0.0.7.tgz","integrity":"sha512-C6WQI+kQQGPvGXkBw+0DOHIJYRY8mdrzkPk/+HDDYwE8LdditsADeiYwpssfynHVCDiN//XlqWbZt5ZuCR47xQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwNmhYrTEtHPZaSj+jSLt67hKbjqnhe4GEIG2sEyhBCQIhALfHBMDCjIPipHKuQOJJ5/JdBGDw+tptZrEqzGwsGOPw"}]},"_from":".","_npmVersion":"1.3.7","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}]}},"maintainers":[{"email":"nopersonsmodules@gmail.com","name":"nopersonsmodules"}],"time":{"modified":"2022-11-08T10:39:57.520Z","created":"2011-05-01T22:07:18.165Z","0.0.1":"2011-05-01T22:07:18.990Z","0.0.2":"2011-05-02T01:39:03.684Z","0.0.3":"2011-05-02T01:41:47.594Z","0.0.4":"2011-05-02T02:04:08.741Z","0.0.5":"2011-05-04T21:22:52.770Z","0.0.6":"2011-05-04T23:27:00.412Z","0.0.7":"2013-09-28T20:37:16.935Z"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/substack/node-markov.git"},"users":{"omardelarosa":true,"coleww":true,"laggingreflex":true,"felegz":true}}