turtleherder
Joined 12 years ago
Joined 12 years ago
Although as I have learned, verbs are quite a bit more involved than nouns. I think I have something close to a generalized API for verbs at this point. I'll be polishing it up more this weekend.
So the translation, ('We disrupted that industry' => 'We rained bullshit on that industry'), was rendering badly when the verb was used intransitively ('We can't disrupt on our own' => 'We can't rain bullshit on on our own').
The regexps I added have mostly taken care of the problem for the time being, as Chrome auto-updates its extensions in users' browsers. Now the latter sentence above renders 'We can't bullshit on our own.'
Once I reintegrate the new rules into the generalized verb creation function this weekend, it should be a little faster.
EDIT: Oh, you mean the actual text inside the "a" tag? Yes, the plugin will change that in its current form. It would be pretty trivial to not have it do that. I will add that next. In the meantime, I don't think the link itself will be affected -- even now, you should be able to click on it and it will go to the right place.
But I initially didn't spread the word about it as much as for the Chrome one because as previous commenters have noted, the Firefox one is under review for 10 days, and before that it's not a searchable page.
Or maybe you would want to pass in a series of regexp replacement pairs there, but even that is too limiting, I think. You might want to do something based on information about the whole node, not just the regex
Then the second module would be the good-enough natural language processor. You'd have an API for nouns, one for verbs, etc.