Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "libmarkov", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Libmarkov in JS", | ||
@@ -9,3 +9,5 @@ "keywords": [ | ||
"markov chain sentence", | ||
"sentence generator" | ||
"markov chain sentence generator", | ||
"sentence generator", | ||
"lorem ipsum generator" | ||
], | ||
@@ -12,0 +14,0 @@ "main": "markov.js", |
@@ -24,8 +24,8 @@ # Libmarkov - Javascript | ||
```js | ||
const Markov = require('libmarkov'); | ||
import Markov from 'libmarkov' | ||
let text = 'This is my sample text.'; | ||
let text = document.getElementById('myinput').value; | ||
let generator = new Markov(text); | ||
alert(generator.generate(10)); | ||
document.getElementById('myresults').textContent = generator.generate(10) | ||
``` | ||
@@ -50,5 +50,1 @@ | ||
``` | ||
### Todo | ||
runtime is slow, something like `0(log(n))`, need to get the runtime down to be able to generate millions of lines with ease. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11061
49