Categories

# Knowledge Hardwork Attitide Coincidence or Not

You have almost certainly seen this often-regurgitated “motivational” quote. It goes like this (and is often pictured on an erasable board to make it look more like it has gushed forth from a beautiful mind)…

### Coincidence or Not

If
A,B,C,D,E,F,G,­H,I,J,K,L,M,N,­O,P,Q,R,S,T,U,­V,W,X,Y,Z

Equals
1,2,3,4,5,6,7,­8,9,10,11,12,13,14,­15,16,17,18,19,20,21,­22,23,24,25,26

Then
K – N – O – W – L – E – D – G – E
11 + 14 + 15 + 23 + 12 + 5 + 4 + 7 + 5 = 96%

H – A – R – D – W – O – R – K
8 + 1 + 18 + 4 + 23 + 15 + 18 + 11 = 98%

Both are important, but both fall short of 100%

BUT
A – T – T – I – T – U – D – E
1 + 20 + 20 + 9 + 20 + 21 + 4 + 5 = 100%

And the answer to the original question (“Coincidence or Not”) is, of course, neither.

The real question is, where did the % come from here? The value of all the letters of the alphabet added together is 351. So, a word that adds up to 100 is not 100% is it? This means…

“Knowledge” represents 27.35%, not 96%, “Hardwork” is 27.92%, and “Attitude” is 28.49%.

Here’s a program that you can use to find the values quickly:

```const map = { a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9, j: 10, k: 11, l: 12, m: 13, n: 14, o: 15, p: 16, q: 17, r: 18, s: 19, t: 20, u: 21, v: 22, w: 23, x: 24, y: 25, z: 26 };

function getValue(word: string) {
word = word.toLowerCase();
let total = 0;
for (let i = 0, len = word.length; i < len; i++) {
const char = word[i];
if (map[char]) {
total += map[char];
}
}
}

// So what is 100%?
console.log(getValue('abcdefghijklmnopqrstuvwxyz')); // 351

function getValueAsPercent(word: string) {
const a = getValue('abcdefghijklmnopqrstuvwxyz');
const b = getValue(word);

return word + ' (' + b + ') ' + Math.round((b/a) * 100) + '%';
}

// None of these are...
console.log(getValueAsPercent('Knowledge'));
console.log(getValueAsPercent('Hardwork'));
console.log(getValueAsPercent('Attitude'));
```

If you want a phrase that gives you 100% (although I’m at a loss to understand why you would need one), you need look no further than: “Dull Motivational Quotes Suck”.