rp-paragraph-splitter
Advanced tools
Comparing version 1.0.0-beta01 to 1.0.0-beta02
@@ -43,3 +43,3 @@ var Sentence = require('./sentence'); | ||
if(last.fullDialogue) { | ||
if(last.fullDialogue && sentence.length > settings.topicLength) { | ||
close = true; | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "rp-paragraph-splitter", | ||
"version": "1.0.0-beta01", | ||
"version": "1.0.0-beta02", | ||
"description": "Splits walls of text into paragraphs, focusing on dialogue.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ # RP Paragraph Splitter | ||
1. Length is past 45 words, the current sentence is 7 words long, the first dialogue has been done, and it's not in the middle of dialogue. | ||
2. The current sentence is one complete quotation. | ||
2. The last sentence is one complete quotation, and the current is 7 words long. | ||
3. The first word is a character name. | ||
@@ -74,3 +74,3 @@ | ||
- `int paragraphLength`: The minimum length for rule 1. | ||
- `ìnt topicLength`: The topic sentence length for rul.e 1 and 3. | ||
- `function characterCallback(string name)`: Where to ask for character, the rule looks for `true` or any non-null object as success. The argument is the first word in lowercase. | ||
- `ìnt topicLength`: The topic sentence length for rule 1 and 2. | ||
- `function characterCallback(string name)`: Where to ask for character, the rule looks for `true` or any non-null object as success. The `name` argument is the first word in lowercase. |
7519