spray icon indicating copy to clipboard operation
spray copied to clipboard

Why is max word length 22 characters?

Open GEMI opened this issue 10 years ago • 4 comments

Max word length is 22 chars, this seems slightly low because there are plenty of longer words.

If you get a longer word app crashes. Uncaught RangeError: Invalid array length

GEMI avatar Apr 07 '14 14:04 GEMI

On their blog Spritz claim average human is only capable of perceiving about 13 letters at a time. I guess they assume longer words should be split... alternatively one might try to prolong time duration for such instances.

the-happy-hippo avatar Apr 08 '14 20:04 the-happy-hippo

Word should be splitted, but it crashes.

igloro avatar Apr 11 '14 12:04 igloro

I agree, the crash should be fixed.

the-happy-hippo avatar Apr 14 '14 06:04 the-happy-hippo

My fix - http://pastebin.com/Xqy9CqXA, but it doesn't solves problem fully. The fix check if word Index exists in array and is not undefined. If does, it skips. This way code doesn't crashes at "long word".

igloro avatar Apr 14 '14 06:04 igloro