Skip to content

Words not delimited by newline in Parser.getKeywords()  #9

@schmamps

Description

@schmamps

Source text (snippet):

Nay, never play the brave man, else when you go back home, your own mother
won't know you. But, dear friends and allies, first let us lay our burdens down; 

I'm expecting [...{word: 'mother', count: 1}, {word: 'wont', count: 1}...] but get [...{word: 'motherwont', count: 1}...] instead.

There are possible side effects to fixing the culprit, but Parser.removePunctations() should filter on t.isAlnum() or t.isSpace(), not t.isAlnum() or t == ' '.

edit: having problems with Markdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions