I came across this sentence while reading, and the use of 'palabra' doesn't make sense to me:
Y no es que quiera irme; palabra.
Although it brings up connotations of the very slang usage of word in English.
Spanish Language Stack Exchange is a question and answer site for linguists, teachers, students and Spanish language enthusiasts in general wanting to discuss the finer points of the language. It only takes a minute to sign up.Sign up to join this community
Yes, it is the same meaning as in English, or at least as I understood from urbandictionary. It means something like "I promise" or "I swear".
About its origin I would say it is a shortened form of "palabra de honor". Cheking RAE for "palabra de honor" it redirects you to the fifth definition of "palabra":
. 5. f. Empeño que hace alguien de su fe y probidad en testimonio de lo que afirma.
It's short for "te doy mi palabra", meaning "te lo prometo".
You can see in RAE that palabra means "promesa u oferta".