No one likes receiving angry text messages. That's why Masters student Lorraine Chambers at the University of Portsmouth in the U.K. created an Android app to warn users of negative messages.

"Stress @ Work" reads incoming Facebook, Twitter and text messages for tone and color-codes so users know if the message is nice, neutral or negative. The app is meant to warn users of texts containing hostile words so they can prepare themselves before reading and better manage their stress.

Under an approach called sentiment analysis, the app uses a pre-trained algorithm that determines whether text and email communications will make users happy. Nice messages receive the green stamp of approval, neutral messages are designated as blue and negative messages are color-coded red.

By anticipating the type of message they are about to read, texters can "manage their stress in the best possible way," senior lecturer Mohamed Medhat Gaber, who helped develop the app, told BBC.

"Whether we are reading a worrying social media news story or a warning email from our manager, messages can upset mood and increase stress level, just as good news and encouraging emails can cheer you up," Gaber said in a prepared statement.

Like smartphones that develop a working knowledge of anticipated words in a text conversation, "Stress @ Work" enables users to manually designate individual messages as positive or negative in order for it to better predict the user's perception of good and bad.

"The application works by learning from past messages how the user perceives the content as being positive, negative or objective," Gaber told BBC.

However, once an Android user reviews the color of a text, deciding whether to read it and how to manage their stress is up to them. "Stress @ Work" merely acts a warning tool, preparing users for bad news.

Chambers and Gaber will present the app at the 16th International Conference on Knowledge-Based and Intelligent Information and Engineering Systems in Spain in September and hope to debut the app for free on Google Play shortly thereafter. Though "Stress @ Work" has only been tested on Android OS, an iOS version may be in the works.

Also on HuffPost:

Check out the gallery below to see some of the biggest changes in Android's latest upgrade.
Loading Slideshow...
  • Sleeker Look

    Ice Cream Sandwich's totally revamped interface places even more emphasis on Google's search bar and aims at making Android more user-friendly. Among the new features are a new typeface called "Roboto" with more rounded letters, as well as scrollable and re-sizable widgets. The snazzy UI also places more of an emphasis on finger gestures.

  • More Camera Features

    What's different about camera functions in Android 4.0? A whole lot, starting with Instagram-esque photo-editing tools and deeper integration with social networks. <a href="http://techcrunch.com/2011/10/18/a-quick-ice-cream-sandwich-feature-rundown/" target="_hplink">TechCrunch is gaga over the improvements</a>, lauding the "image stabilization, improved autofocus, and integration with other apps for sending photos or instant upload to Google+. Oh, and who could forget built-in face detection, panorama and time lapse modes, and on-the-fly photo retouching and enhancements." Like Apple's new iOS 5, Android users will also be able to access the camera right from the lock screen.

  • New Security Feature

    Android 4.0 users can rest easy, knowing that their devices will feature the nifty Face Unlock, which scans the user's face before unlocking the gadget.

  • Data Management

    A data management tool will help the user understand the amount of data their favorite apps use. This tool will also let the user set data limits for herself, and it will send warnings to notify the user when her data use approaches those limits.

  • Revamped Browser

    Not only will it look sleeker on handsets, Android's native browser will now place more emphasis on tabs and offline productivity. "Users can keep up to 16 tabs open, view a live preview of each and quickly switch between them," <a href="http://www.bgr.com/2011/10/18/google-unveils-android-4-0-ice-cream-sandwich-for-smartphones-tablets/" target="_hplink">explains By Genius Report</a>. "Tabs can be closed by flicking them off of the screen much like webOS or RIM's tablet OS. Google also automatically syncs bookmarks to your Android browser from Chrome, and users can save pages for offline reading."

  • More Robust Gmail

    Gmail users, rejoice! Here's what's new with Google's celebrated email app, <a href="http://techcrunch.com/2011/10/18/a-quick-ice-cream-sandwich-feature-rundown/" target="_hplink">according to TechCrunch</a>: "Gmail now supports two-line previews, and sports a new context-sensitive action bar at the bottom of the screen. Gesture support allows you to swipe left and right between emails." <a href="http://www.bgr.com/2011/10/18/google-unveils-android-4-0-ice-cream-sandwich-for-smartphones-tablets/" target="_hplink">Boy Genius Report notes</a> that Gmail will support offline search, too.

  • Improved Voice Dictation

    Though it's no Siri, Google has upgraded its hands-free speech recognition feature, which lets users dictate text, send messages, open media files and more. <a href="http://www.pcworld.com/article/242139/apples_ios_5_vs_googles_android_40_ice_cream_sandwich.html" target="_hplink">Per PCWorld</a>: "ICS voice command software now has a hands free feature that lets you activate voice actions just by speaking to your phone instead of pressing a button." "play music, search the web, and dictate notes, SMS and email messages."

  • NFC Sharing

    Google touts the security of its Android Beam wireless transfer system, which lets users share content between devices equipped with Near-Field Communication (aka NFC) technology. <a href="http://www.engadget.com/2011/10/18/google-announces-nfc-based-android-beam-for-sharing-between-phon/" target="_hplink">Engadget explains how the system will work</a>: Much like HP's ill-fated Touch-to-share functionality, it will let you simply tap two NFC-enabled devices together to share a piece of information. That will work with a range of apps and services in Android, including YouTube videos, contact information, maps, web pages" and more. While you can transfer content from apps, you can't transfer the apps themselves, but Engadget notes that Android Beam "links to apps in the Android Market.

  • Virtual Buttons

    Designed with an eye toward button-free Android handsets, version 4.0 of Google's operating system relies more on finger gestures and integrates navigation buttons and music controls into the user interface. The feature could lead to a new generation of sleeker devices with fewer hardware buttons. But will these virtual buttons get in user's way? <a href="http://techcrunch.com/2011/10/18/a-quick-ice-cream-sandwich-feature-rundown/" target="_hplink">TechCrunch says no</a>: "[T]hey smartly disappear when viewing video or in widescreen mode."

  • Notifications Upgrade

    "The notification window is now slightly translucent with a glowing dot when you pull it downward," <a href="http://thisismynext.com/2011/10/18/exclusive-matias-duarte-ice-cream-sandwich-galaxy-nexus/" target="_hplink">according to This Is My Next</a>. "Notifications can be swiped away one at a time, mirroring webOS 3.0 behavior. You can access your notifications on the lock screen if you're not using a passcode, and you can jump quickly to your settings through the window shade."

  • Universal Android OS

    Version 4.0 will work on any Android device, be it tablet or smartphone. "Ice Cream Sandwich is the OS that's supposed to put a damper on all that fragmentation talk," <a href="http://venturebeat.com/2011/10/18/ice-cream-sandwich-debut/" target="_hplink">writes VentureBeat</a>. "[T]he 2.X OS for phones and the 3.X OS for tablets will give way to the 4.X OS for all Android devices."

  • Social Integration

    ICS bakes deeper social integration into many apps. Perhaps the most social is the "People" app. <a href="http://www.bgr.com/2011/10/18/google-unveils-android-4-0-ice-cream-sandwich-for-smartphones-tablets/" target="_hplink">BGR writes</a> that this new app "pulls in contact information and photos from social networks for your whole address book. Whenever a contact updates his or her info, it is also automatically updated on your phone."

  • Related Video: