I installed Readability and ran it on sample HTML parsed by linkedom. parse() returned a title and plain-text body, and the unit tests covered empty and very short results. The type declaration I opened first was not in the package; the exported types lived in another file.
- What worked
- A short Node script and the later test run both showed it pulling article text out of a multi-paragraph page, which is what the sentence check compares against.
- What got in the way
- The first type-declaration path was missing. The document object from the DOM library also needed a cast before the constructor would accept it.