If you've ever accidentally offended someone with a rude email, or misjudged the tone of a conversation, a new online tool might save any future hassle.

FoxType, a web app and Gmail extension, aims to help you 'write in a more polite, friendly tone'.

Similar to how spellcheck works, this software checks common phrases for warning signs that you are being passive aggressive, obtuse, or just plain nasty.

Analyse your writing using FoxType below. Mobile users can use the tool on the website

FoxType aims to help you 'write in a more polite, friendly tone' by checking common phrases for warning signs you are being passive aggressive, obtuse, or just plain nasty. Its welcome message of 'Hello, visitor! Welcome to FoxType :)' is 85% polite

It works as an extension for Gmail, but the easiest way to use FoxType's politeness tool is to type out your message, then paste it into the box on the website.

It will then run an analysis of your email based on its algorithms and database on phrases.

HOW POLITE WAS THAT QUOTE? Albert Einstein: 'Two things are infinite: the universe and human stupidity. And I'm not sure about the universe.' Score: 50% neutral. Mahatma Gandhi: 'Be the change that you wish to see in the world.' Score: 72% polite. Dr Seuss: 'Don't cry because it's over, smile because it happened.' Score: 41% neutral. Alan Partridge: 'I don't like big feet. It reminds me of gammon.' Score: 38% neutral. Oscar Wilde: 'Always forgive your enemies; nothing annoys them so much.' Score: 58% neutral. Advertisement

In particular, it searches for key phrases or types of words that suggest the tone of the email is polite or impolite.

For example, referring to the reader as 'you' and asking questions is considered impolite.

But using positive language and phrases like 'thank you', 'we' and 'us' makes the text more polite.

The best way to use the tool is to scan the suggestions and then craft a response of your own from the ideas.

The site's welcome message of 'Hello, visitor! Welcome to FoxType :)' is 85% polite.

When searching for FoxType and clicking on the Google link to the politeness tool, however, a rather more inappropriate sentence is added by default.

The politeness tool isn't always smart and doesn't always make sense.

When tested on sections of presidential campaign speeches and interviews, it reveals how rude or polite the candidates have been.

Sections of Donald Trump's speech in July last year, announcing he will be running for President, turned out to be quite polite when analysed by the extension.

Sections of Donald Trump's speech in July 2015, announcing he was running for President, turned out to be quite polite when analysed by the tool (shown)

FoxType searches for key phrases or types of words that suggest the tone of the email is polite or impolite. Parts of Donald Trump's campaign announcement speech referring to the US national debt and competition with Japan and Mexico came out as generally polite on FoxType, with scores of 66 and 62 per cent

THE POLITENESS OF DONALD TRUMP'S CAMPAIGN SPEECH 'Reduce our $18 trillion in debt, because, believe me, we're in a bubble. We have artificially low interest rates. We have a stock market that, frankly, has been good to me, but I still hate to see what's happening. We have a stock market that is so bloated. Be careful of a bubble because what you've seen in the past might be small potatoes compared to what happens. So be very, very careful.' Score: 66 per cent - polite 'When did we beat Japan at anything? They send their cars over by the millions, and what do we do? When was the last time you saw a Chevrolet in Tokyo? It doesn't exist, folks. They beat us all the time. When do we beat Mexico at the border? They're laughing at us, at our stupidity. And now they are beating us economically. They are not our friend, believe me. But they're killing us economically. The U.S. has become a dumping ground for everybody else's problems.' Score: 62 per cent - polite 'They're building up their military to a point that is very scary. You have a problem with ISIS. You have a bigger problem with China.' Score: 24 per cent - impolite Advertisement

Parts of his speech referring to the US national debt and competition with Japan and Mexico came out as generally polite, with scores of 66 and 62 per cent.

But his comments about the military in China were considered impolite, with a score of 24 per cent.

A quote from Hilary Clinton's latest speech in New York on Wednesday was given a polite score of 75 per cent. 'This is a city that likes to get things done. And that's what we want from our president too.'

Bernie Sanders was very polite after the Iowa caucus. The first part of his speech before the results were in, scored 74 per cent and an overall rating of 'polite'.

There is a Google Chrome extension that self-conscious message writers can download for a free trial.