Towards an anharmonic description of entropy