Text this: An efficient algorithm to decide periodicity of $b$-recognisable sets using LSDF convention