dhowe / ReadersJS

1 stars 4 forks source link

improved focused reader output #151

Closed shadoof closed 7 years ago

shadoof commented 7 years ago

see what you think. working for me (based on trigrams) but code could be tidied up somewhat.

@dhowe Note: RiTa.stripPunctuation does not play entirely nice with the punctuation we use and in relation to trigram and bigram look-ups. I had to adjust the coding for tri- and bigram counts to deal with this.

Question: does RiTa.trimPunctuation only strip off one character layer? i.e.

If not, then RiTa.trimPunctuation (and stripPunctuation?) may not be handling "?" correctly.