# [JavaScript (Node.js)], 61 bytes

[JavaScript (Node.js)]: https://nodejs.org

A lookup table based on the ASCII code of each letter.

<!-- language-all: lang-javascript -->

    s=>Buffer(s).map(c=>t+='50363133463254'[(c^98)%22]-3|0,t=0)|t

[Try it online!](https://tio.run/##jdJdT8IwFAbge34FITFsmXytMPViJKXW2dCeQ9YNEowmBJnRIBCYXvHfJxJE7GZC08snb9@e9m3yOdlM16@rtLZYPs@yxM82frf3kSSztbWx6@@TlTX1u6njVztN4pEWIW2PuJ129cGaPt1c2xeu@1gj2@Zl6jftbZpNl4vNcj6rz5cvVmJVGN7yim2XD6vRKNfaJcMEKO8MQ0yjacxOggoNo5E2clzTKEQwTMs0gKD5bh9coRnHrM/DHg@DvdqZcjPXOQoFBMfTCg27p1JyCA6H7YyT6wxUyL@dnYK7hyCGVP52dnJzZqgGUigO0U/nvBnRofFeTsc0MfQBR8cxFhpFx2aOV8ohMR5zUFRHip6@yr/rO6Z1ZcYMgMcKAWMZhVQJFqJmOBBMCykYDlEyCsgQBGqx/yD7n@HlKwMN@HE85fPauPkpg2YCYw1c6zMvVWuR7As "JavaScript (Node.js) – Try It Online")