Using `getLanguage` in `blockLanguage`, also using more compact code with .filter (which is on the verge of being too clever, but let it live like this for a while).