r0w4n / twitter-words

Word compression to allow posting of 140 words instead of 140 characters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twitter-words

This small project is a demostration on how to break the character constraint of twitter.

var dictionary = getDictionary();
var encoded = 'how now brown cow'.twitterEncode(dictionary)

console.info('encoded => ', encoded);
console.info('decoded => ', encoded.twitterDecode(dictionary));

Yields:

encoded => 怔蓼ᡃ⯳

decoded => how now brown cow

Limitations

  • unable to use punctuation and digits. Only words.
  • limited to 2^16 dictionary

About

Word compression to allow posting of 140 words instead of 140 characters.


Languages

Language:JavaScript 51.4%Language:HTML 48.6%