spencer kelly
spencer kelly
hey Bruno, thank you so much for creating this. I've just removed the re-declared variables in `_buildTables`. cheers
currently syllable results are normalized and lowercased. Often people want to hyphenize text inline, and this involves a weird mapping backward. I'm not sure what the best way to do...
via email from Brian Gallagher: Awkward whitespace output from matching first-part contraction. ``` let str = `Leonard's was Randall` let doc = nlp(str) console.log(doc.match('#Noun').text()) //'Leonard'sRandall' ``` same for `Toronto's was...
`nlp('i worked at google').normalize().text() //'I worked at Google.'` https://github.com/spencermountain/compromise/blob/master/src/text/methods/normalize.js#L47 probably a breaking change, for v12
``` this is real life. -> this is not real life. ✔️️ is this real life? -> is not this real life? ✖️️ ``` `nlp('is this').sentences(0).toNegative()` outputs `"is not this"`,...
this blows. ``` {| class="wikitable plainrowheaders" style="width: 100%;" |- | hello === 2010 === |- world |} ``` https://en.wikipedia.org/wiki/List_of_Atlas_launches_(2010%E2%80%932019)
```js let str = `infront {{math| missing {{=}} text}} behind` let doc = wtf(str) console.log(doc.text()) // infront behind ``` introduced by adding apostrophe [in this keyParser regex](https://github.com/spencermountain/wtf_wikipedia/blob/master/src%2Ftemplates%2F_parsers%2F02-keyMaker.js#L3)
from [#300](https://github.com/spencermountain/wtf_wikipedia/issues/300) `wtf("[[Page 1|'''link''']]").sentences(0).html()` Produces: `link` Instead of: `link` Because the link parser thinks the final text contains the ''', which it doesn't because the bold parser replaces it after...
cells are currently sentences, and images are stored on Paragraph. ```js let str = `{| class="wikitable" |[[File:New-York-Jan2005.jpg|100x95px]] |New York City |}`; console.log(wtf(str).tables(0).html()); ``` should table cells be paragraphs? ¯\_(;/)_/¯;
```js let d = spacetime('june 2nd 1892') d.every('year', 'june 2nd 1902').forEach((y) => { console.log(y.format('iso-short')) }) /* 1893-01-01 1894-01-01 1894-12-31 //day shy 1896-12-31 1898-12-31 1900-12-31 1894-12-31 */ ```