buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.92k stars 79 forks source link

Tweet Spell check #30

Closed Samathy closed 8 years ago

Samathy commented 8 years ago

I'm not particularly good at spelling, and rely heavily on spellcheck to get things right. It should be quite simple to pipe a tweet into aspell before actually sending it, notifying the user if there are any words spelt incorrectly.

I should be able to do this myself, Just thought I'd post an issue to get suggestions before attempting it. (read - Give me a few days, I'd like to do it myself, don't do it for me!.)

timofurrer commented 8 years ago

hmm ... I don't like this. I want to use abbreviations, urls, foreign languages etc without a spell checker complaining about it.

Could you make something work with an alias? Or with piping instead?

echo "worng sepllt" | fancyspellchecker | twtxt tweet

However, this only makes sense if your spell checker fixes the mistakes - and you wouldn't have control what would be tweeted in the end.

Maybe implement a generic pre-tweet hook option? In your case this would be a spell checker?

Samathy commented 8 years ago

Okay! I added a little snippet which asks the user if they just want to sent the tweet anyway without making any changes. Its almost like a "Check to make sure button"

Additionally, it seems that aspell knows what a URL is, and ignores spellchecking it.

(Requires GNU/aspell to be installed.)

buckket commented 8 years ago

See https://github.com/buckket/twtxt/pull/35#issuecomment-181333063. I’d rather see stuff like implemented using a plugin system / post_tweet_hook, if at all.

Samathy commented 8 years ago

That makes sense. I might maintain this patch until you have a plugin system working.

buckket commented 8 years ago

Closing this for now. Will come back to it later when we have a plugin system ready.