code: function patch(entry) {
    var description = entry.note
    var source = entry.source
    var result = {
      id: null,
      type: entry.type,
      apostrophe: entry.apostrophe ? true : undefined,
      categories: entry.categories,
      considerate: entry.considerate,
      inconsiderate: entry.inconsiderate,
      condition: entry.condition
    }
  
    if (source) {
      if (description) {
        description += ' (source: ' + source + ')'
      } else {
        description = 'Source: ' + source
      }
    }
  
    result.note = description
    result.id = getPatternId(result)
  
    return result
  }
docs: /* Patch information on `entry`.