CountColon – a robot that adds text statistics to your blips

This is my first Google Wave robot ^^ Just got access to the Google Wave sandbox yesterday (finally!).
There don’t even seem to be that many robots and gadgets yet. All in all there are about 50 gadgets and robots on the official list, so my robot is one of the very first add-ons for Google Wave (yay).
I like the feature that many text editors (at least the good ones) have which shows you statistics about your documents. Stuff like line count, word count, character count and so forth. Google Wave doesn’t have that and nobody (at least not that I know of ^^) wrote a robot that adds this functionality to Wave, so I did it myself ^^ Was easy enough too which is good since I only know the little bit about Python that I learnt when I started working on a website that runs on Google App Engine.
Here’s how it works (for now):
You write [count: lines] or [count: words] anywhere in your text and then the robot swaps it with the count. That way, you can style the output like you want. You can also do [count: chars] to count characters and I plan to add paragraph counting next. And then I’ll make a command that lets you count occurrences of a word or phrase ^^ And THEN I will make an option that lets the counters update live (at the moment they only update exactly… Once ^^).
Developing robots isn’t that easy right now for two reasons. The documentation is incomplete (and that’s a nice word for it ^^) and you can’t test robots locally which means that you have to develop your robot, upload it to Google App Engine, add it to a Wave in Google Wave, check your App Engine logs for error messages, change your code, upload your code again, …
Also the Python API seems to be missing a few features that the Java API already offers (I haven’t looked at the Java API yet). You can’t for example modify styled text (bold, italic, etc.) with the Python API which means that if you do modify text with a robot written in Python, all styles are lost. I learnt that the hard way with my robot
It’s a lot of fun though ^^ I already have ideas for 5 more projects (robots and gadgets) and I’m sure I’ll get a couple more ideas over the next weeks.
I’ll write about my experience with Wave in another blog post.











