added guesslang function in the publish script