The letter of the law was a legal concept which held that the law ought to be applied as written, rather than as intended.
In 2365, when encouraging Data to fight for his legal status, Jean-Luc Picard characterized Phillipa Louvois as being "overly attached to the letter of the law", yet believed she still understood the law's spirit. (TNG: "The Measure Of A Man")