This document defines an extension mechanism for capturing "extended presence" data about user moods.
Information about user moods is provided by the user and propagated on the network by the user's client. The information is structured via a <mood/> element that is qualified by the 'http://jabber.org/protocol/mood' namespace. The mood itself is provided as the element name of a defined child element of the <mood/> element (e.g., <happy/>); one such child element is REQUIRED. The user MAY also specify a natural-language description of, or reason for, the mood in the <text/> child of the <mood/> element, which is OPTIONAL. Here is an example:
In addition, an application MAY provide a more specific mood value as a properly-namespaced child of the defined element, which extension MUST be ignored if the receiving application does not understand the extended namespace. Here is an example:
Mood information SHOULD be communicated and transported by means of the Publish-Subscribe (XEP-0060)  subset specified in Personal Eventing Protocol (XEP-0163) . Because mood information is not pure presence information and can change independently of the user's availability, it SHOULD NOT be provided as an extension to <presence/>.
The mood is then delivered to all subscribers:
In order to indicate that the user is no longer publishing moods, the user's client shall send an empty <mood/> element, which can be considered a "stop command" for user moods:
A user MAY provide a mood extension in a specific IM message in order to lend a defined emotional tone to text of that particular message. (This does not override the user's more general mood and is not intended to replace PEP as a more general transport method for user moods.)
There exist various theories of human affect, mood, and emotion, including those promulgated by Frijda , Ortony et al. , and Wierzbicka . The taxonomy provided here mostly follows the Affective Knowledge Representation that has been defined by Lisetti  in an effort to harmonize the prevailing theories in this area, as well as some work by Wierzbicka on cross-cultural studies of emotion.  Furthermore, the taxonomy provided here includes a number of common physical states in addition to moods, and also takes into account the specific context of instant messaging, including work done by other standards development organizations (e.g., the Wireless Village specifications contributed to the Open Mobile Alliance (OMA) ) and instant messaging service providers (e.g., ICQ). Finally, lists of moods and physical states have been checked for commonality against studies of word frequency in the English language.  to remove rarely used terms.
The following mood values are defined in this taxonomy. Where available as linked below, the definitions are obtained from Wiktionary.
afraid -- Impressed with fear or apprehension; in fear; apprehensive.
amazed -- Astonished; confounded with fear, surprise or wonder.
amorous -- Inclined to love; having a propensity to love, or to sexual enjoyment; loving, fond, affectionate, passionate, lustful, sexual, etc.
angry -- Displaying or feeling anger, i.e., a strong feeling of displeasure, hostility or antagonism towards someone or something, usually combined with an urge to harm.
annoyed -- To be disturbed or irritated, especially by continued or repeated acts.
anxious -- Full of anxiety or disquietude; greatly concerned or solicitous, esp. respecting something future or unknown; being in painful suspense.
aroused -- To be stimulated in one's feelings, especially to be sexually stimulated.
ashamed -- Feeling shame or guilt.
bored -- Suffering from boredom; uninterested, without attention.
brave -- Strong in the face of fear; courageous.
calm -- Peaceful, quiet.
cautious -- Taking care or caution; tentative.
cold -- Feeling the sensation of coldness, especially to the point of discomfort.
confident -- Feeling very sure of or positive about something, especially about one's own capabilities.
confused -- Chaotic, jumbled or muddled.
contemplative -- Feeling introspective or thoughtful.
contented -- Pleased at the satisfaction of a want or desire; satisfied.
cranky -- Grouchy, irritable; easily upset.
crazy -- Feeling out of control; feeling overly excited or enthusiastic.
creative -- Feeling original, expressive, or imaginative.
curious -- Inquisitive; tending to ask questions, investigate, or explore.
dejected -- Feeling sad and dispirited.
depressed -- Severely despondent and unhappy.
disappointed -- Defeated of expectation or hope; let down.
disgusted -- Filled with disgust; irritated and out of patience.
dismayed -- Feeling a sudden or complete loss of courage in the face of trouble or danger.
distracted -- Having one's attention diverted; preoccupied.
embarrassed -- Having a feeling of shameful discomfort.
envious -- Feeling pain by the excellence or good fortune of another.
excited -- Having great enthusiasm.
flirtatious -- In the mood for flirting.
frustrated -- Suffering from frustration; dissatisfied, agitated, or discontented because one is unable to perform an action or fulfill a desire.
grateful -- Feeling appreciation or thanks.
grieving -- Feeling very sad about something, especially something lost; mournful; sorrowful.
grumpy -- Unhappy and irritable.
guilty -- Feeling responsible for wrongdoing; feeling blameworthy.
happy -- Experiencing the effect of favourable fortune; having the feeling arising from the consciousness of well-being or of enjoyment; enjoying good of any kind, as peace, tranquillity, comfort; contented; joyous.
hopeful -- Having a positive feeling, belief, or expectation that something wished for can or will happen.
hot -- Feeling the sensation of heat, especially to the point of discomfort.
humbled -- Having or showing a modest or low estimate of one's own importance; feeling lowered in dignity or importance.
humiliated -- Feeling deprived of dignity or self-respect.
hungry -- Having a physical need for food.
hurt -- Wounded, injured, or pained, whether physically or emotionally.
impressed -- Favourably affected by something or someone.
in_awe -- Feeling amazement at something or someone; or feeling a combination of fear and reverence.
in_love -- Feeling strong affection, care, liking, or attraction..
indignant -- Showing anger or indignation, especially at something unjust or wrong.
interested -- Showing great attention to something or someone; having or showing interest.
intoxicated -- Under the influence of alcohol; drunk.
invincible -- Feeling as if one cannot be defeated, overcome or denied.
jealous -- Fearful of being replaced in position or affection.
lonely -- Feeling isolated, empty, or abandoned.
lost -- Unable to find one's way, either physically or emotionally.
lucky -- Feeling as if one will be favored by luck.
mean -- Causing or intending to cause intentional harm; bearing ill will towards another; cruel; malicious.
moody -- Given to sudden or frequent changes of mind or feeling; temperamental.
nervous -- Easily agitated or alarmed; apprehensive or anxious.
neutral -- Not having a strong mood or emotional state.
offended -- Feeling emotionally hurt, displeased, or insulted.
outraged -- Feeling resentful anger caused by an extremely violent or vicious attack, or by an offensive, immoral, or indecent act.
playful -- Interested in play; fun, recreational, unserious, lighthearted; joking, silly.
proud -- Feeling a sense of one's own worth or accomplishment.
relaxed -- Having an easy-going mood; not stressed; calm.
relieved -- Feeling uplifted because of the removal of stress or discomfort.
remorseful -- Feeling regret or sadness for doing something wrong.
restless -- Without rest; unable to be still or quiet; uneasy; continually moving.
sad -- Feeling sorrow; sorrowful, mournful.
sarcastic -- Mocking and ironical.
satisfied -- Pleased at the fulfillment of a need or desire.
serious -- Without humor or expression of happiness; grave in manner or disposition; earnest; thoughtful; solemn.
shocked -- Surprised, startled, confused, or taken aback.
shy -- Feeling easily frightened or scared; timid; reserved or coy.
sick -- Feeling in poor health; ill.
sleepy -- Feeling the need for sleep.
spontaneous -- Acting without planning; natural; impulsive.
stressed -- Suffering emotional pressure.
strong -- Capable of producing great physical force; or, emotionally forceful, able, determined, unyielding.
surprised -- Experiencing a feeling caused by something unexpected.
thankful -- Showing appreciation or gratitude.
thirsty -- Feeling the need to drink.
tired -- In need of rest or sleep.
undefined -- [Feeling any emotion not defined here.]
weak -- Lacking in force or ability, either physical or emotional.
worried -- Thinking about unpleasant things that have happened or that might happen; feeling afraid and unhappy.
The Wireless Village (now "IMPS") specifications for mobile instant messaging define a number of presence attributes, encapsulated in the "StatusMood" information element . The following values are defined for StatusMood in Wireless Village, all of which map one-to-one from Wireless Village to the same values (albeit lowercase) in Jabber:
The full range of moods defined herein is richer than that defined in Wireless Village; no mapping is provided by this specification for mood values that are not present in Wireless Village, and any such mapping is the responsibility of a gateway between the two systems.
The XML character data values of the <value/> elements is not intended to be presented to a human user and thus there is no special reason to include an 'xml:lang' attribute unless the sender includes a <text/> element as well (as explained in RFC 2277 , "internationalization is for humans"). It is the responsibility of the receiving application to provide localized text strings associated with the XML character data values defined herein, or some other appropriate presentation (e.g., graphical images that represent the mood).
Because user moods may be published to a large number of pubsub subscribers, users should take care in approving subscribers and in characterizing their current moods.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) .
This document in other formats: XML PDF
This XMPP Extension Protocol is copyright © 1999 – 2018 by the XMPP Standards Foundation (XSF).
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.
## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The primary venue for discussion of XMPP Extension Protocols is the <email@example.com> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Errata can be sent to <firstname.lastname@example.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
3. Frijda, N. 1986. The Emotions. New York: Cambridge University Press.
4. Ortony, A., Clore, G., and Collins, A. 1988. The Cognitive Structure of Emotions. Hillsdale, NJ: Erlbaum.
5. Wierzbicka, A. 1992. Defining Emotion Concepts. Cognitive Science 16: 539-581.
6. Lisetti, C. 2002. Personality, Affect, and Emotion Taxonomy for Socially Intelligent Agents. In Proceedings of FLAIRS 2002. Menlo Park, CA: AAAI Press.
7. Wierzbicka, A. 1999. Emotions across Languages and Cultures. Cambridge: Cambridge University Press.
8. The Open Mobile Alliance is the focal point for the development of mobile service enabler specifications, which support the creation of interoperable end-to-end mobile services. For further information, see <http://www.openmobilealliance.org/>.
9. Leech, G., Rayson, P., and Wilson, A. 2001. Word Frequencies in Written and Spoken English. Harlow, England: Pearson Education.
10. The Wireless Village Initiative: Presence Attributes v1.1 (WV-029); for further information, visit <http://www.openmobilealliance.org/tech/affiliates/wv/wvindex.html>.
12. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
13. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <https://xmpp.org/registrar/>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Changed the namespace of an example of proprietary extensibility.
Allowed empty mood element to signify a pause in publishing; added undefined element to handle any unspecified mood; also added more moods: amorous, cautious, confident, contemplative, crazy, creative, dejected, dismayed, envious, hopeful, lucky, outraged, relaxed, spontaneous, strong, thankful, tired, weak.
Corrected PEP examples.
Per a vote of the Jabber Council, advanced status to Draft; per Council discussion, also added two additional moods and adjusted structure to use elements rather than XML character data.
Added internationalization considerations.
Corrected several errors; added reference to XEP-0033.
Minor fixes to text and schema.
Added more moods.
Expanded the information format; changed primary container to use pubsub.