old_contents: # -*- coding: utf-8 -*-
  """IEL100: Inconsistent spelling.
  
  ---
  layout:     post
  error_code: IEL100
  source:     Intelligent Editing Ltd.
  source_url: http://bit.ly/1x3hYj7
  title:      Inconsistent spelling
  date:       2014-06-10 12:31:19
  categories: writing
  ---
  
  Intelligent Editing Ltd. says:
  
  > Some words have more than one correct spelling. American, British, Australian
  and Canadian English all have their own preferences. Even within those, there
  can be multiple spellings. For example, in the UK 'realise' is often preferred.
  However, 'realize' has been used in British-English for centuries and is
  preferred in the Oxford English Dictionary. However, no matter which spelling
  is preferred, one thing is always wrong: you mustn't use two different
  spellings in the same document.
  """
  from tools import consistency_check, memoize
  
  
  @memoize
  def check(blob):
      """Check the text."""
      err = "IEL100"
      msg = "Inconsistent spelling of '{}' (vs. '{}')."
  
      word_pairs = [
          ["advisor", "adviser"],
          ["analyse", "analyze"],
          ["centre", "center"],
          ["emphasise", "emphasize"],
          ["finalise", "finalize"],
          ["focussed", "focused"],
          ["labour", "labor"],
          ["learnt", "learned"],
          ["organise", "organize"],
          ["organised", "organized"],
          ["organising", "organizing"],
          ["recognise", "recognize"],
      ]
  
      return consistency_check(blob, word_pairs, err, msg)
  
new_contents: # -*- coding: utf-8 -*-
  """IEL100: Inconsistent spelling.
  
  ---
  layout:     post
  error_code: IEL100
  source:     Intelligent Editing Ltd.
  source_url: http://bit.ly/1x3hYj7
  title:      Inconsistent spelling
  date:       2014-06-10 12:31:19
  categories: writing
  ---
  
  Intelligent Editing Ltd. says:
  
  > Some words have more than one correct spelling. American, British, Australian
  and Canadian English all have their own preferences. Even within those, there
  can be multiple spellings. For example, in the UK 'realise' is often preferred.
  However, 'realize' has been used in British-English for centuries and is
  preferred in the Oxford English Dictionary. However, no matter which spelling
  is preferred, one thing is always wrong: you mustn't use two different
  spellings in the same document.
  """
  from tools import consistency_check, memoize
  
  
  @memoize
  def check(blob):
      """Check the text."""
      err = "IEL100"
      msg = "Inconsistent spelling of '{}' (vs. '{}')."
  
      word_pairs = [
          ["advisor", "adviser"],
          # ["analyse", "analyze"],
          ["centre", "center"],
          ["emphasise", "emphasize"],
          ["finalise", "finalize"],
          ["focussed", "focused"],
          ["labour", "labor"],
          ["learnt", "learned"],
          ["organise", "organize"],
          ["organised", "organized"],
          ["organising", "organizing"],
          ["recognise", "recognize"],
      ]
  
      return consistency_check(blob, word_pairs, err, msg)
  
subject: Kill false alarm