triangles and languages