Keystroke Counter
Keystroke Counter is a library to analyze how many keystrokes a word in each language takes.
Usage
; keystrokeCounter); # default language is english returns 5keystrokeCounter); # returns 6keystrokeCounter); # returns 9keystrokeCounter); # returns 6
Supported languages
CatalanChineseCzechDanishDutchEnglishEsperantoFrenchGermanGreekHindiIcelandicItalianJapaneseKoreanLatvianLithuanianPersianPolishPortugueseRomanianSpanishTurkishVietnamese
Attention
Languages japanese and korean have a word based calculation, so if the word is not included, the calculated keystrokes will be zero. For chinese the calculation is greatly simplified, as each character just counts as 5. Please let me know if there is a more accurate way to calculate the keystrokes for these languages.
Contributing
Please write me an email to go4christian@gmail.com if you want to contribute, as I'm new to the whole pull request/collaborate coding thing.