Skip to content

Conversation

@mieko
Copy link

@mieko mieko commented May 16, 2011

I wrote a scanner on top of chronic, using its tagger, and this was pretty strange. Token#to_s is elongating its word attribute every time I display it, making it hard to query tokens if they've been tagged.

First commit fixes this bug and includes a testcase.
Second commit alters similar mutable-to_s cases throughout the Tag hierarchy to avoid this situation in the future.

mieko added 2 commits May 16, 2011 05:34
This made debugging the parser quite a pain, and extracting the original
word impossible without trickery.
For the sake of avoiding weird bugs in the future, the token tags
shouldn't play around with mutable strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant