Open factormystic opened 8 years ago
yeah, thanks. this nested response format is pretty nutty. Term.syllables() should definitely always return an array of strings, no matter how many words are in the term. I don't know why it's doing that.
Huh. I'm seeing it one level deeper than @factormystic.
> nlp.text('houston texas').syllables()
[ [ [ [Object], [Object] ] ] ]
> nlp.text('houston texas').syllables()[0]
[ [ [ 'hous', 'ton' ], [ 'te', 'xas' ] ] ]
yeah. I also had the thought that maybe it should return this
, just like all the other text/sentence methods do - that way you can be smart about whitespace and all.
right now,
houston texas
iswhich is wrong. but
houstontexas
isand
houston
andtexas
separately are also correct. pretty sure this is a website thing, because: