code vs rule

code

noun
  • A body of law, sanctioned by legislation, in which the rules of law to be specifically applied by the courts are set forth in systematic form; a compilation of laws by public authority; a digest. 

  • By synecdoche: a codeword, code point, an encoded representation of a character, symbol, or other entity. 

  • A message represented by rules intended to conceal its meaning. 

  • Any system of principles, rules or regulations relating to one subject. 

  • A program. 

  • A cryptographic system using a codebook that converts words or phrases into codewords. 

  • A particular lect or language variety. 

  • A set of unwritten rules that bind a social group. 

  • Instructions for a computer, written in a programming language; the input of a translator, an interpreter or a browser, namely: source code, machine code, bytecode. 

  • A short symbol, often with little relation to the item it represents. 

  • An emergency requiring situation-trained members of the staff. 

  • A set of rules for converting information into another form or representation. 

verb
  • To encode. 

  • To call a hospital emergency code. 

  • To categorise by assigning identifiers from a schedule, for example CPT coding for medical insurance purposes. 

  • To go into a state where a hospital emergency code is required to save one's life. 

  • To encode a protein. 

  • To add codes to a dataset. 

  • Of a patient, to suffer a sudden medical emergency (a code blue) such as cardiac arrest. 

  • To write software programs. 

rule

noun
  • An order regulating the practice of the courts, or an order made between parties to an action or a suit. 

  • A determinate method prescribed for performing any operation and producing a certain result. 

  • A regulating principle. 

  • A ruler; device for measuring, a straightedge, a measure. 

  • A normal condition or state of affairs. 

  • A regulation, law, guideline. 

  • A straight line (continuous mark, as made by a pen or the like), especially one lying across a paper as a guide for writing. 

  • The act of ruling; administration of law; government; empire; authority; control. 

verb
  • To establish or settle by, or as by, a rule; to fix by universal or general consent, or by common practice. 

  • To regulate, be in charge of, make decisions for, reign over. 

  • To decide judicially. 

  • To mark (paper or the like) with rules (lines). 

  • To excel. 

How often have the words code and rule occurred in a corpus of books? (source: Google Ngram Viewer )