In classical antiquity, [[copyist]]scopyists of the [[Hebrew Bible]] were paid for their work according to the number of [[Wiktionary:stich|stich]]sstichs (lines of verse). As the prose books of the Bible were hardly ever written in stichs, the copyists, in order to estimate the amount of work, had to count the letters.<ref name="Jewish">{{cite encyclopedia |url=http://www.jewishencyclopedia.com/articles/10465-masorah |encyclopedia=Jewish Encyclopedia |article=Masorah}}</ref> This also helped ensure accuracy in the transmission of the text with the production of subsequent copies.<ref>{{cite book |last1=Pratico |first1=Gary D. |last2=Pelt |first2=Miles V. Van |title=Basics of Biblical Hebrew Grammar: Second Edition |date=2009 |publisher=Zondervan |isbn=978-0-310-55882-8 |url=https://books.google.com/books?id=p3FIoT0s3yYC&pg=PT448}}</ref><ref>{{cite book |last1=Mounce |first1=William D. |title=Greek for the Rest of Us: Using Greek Tools Without Mastering Biblical Languages |date=2007 |publisher=Zondervan |isbn=978-0-310-28289-1 |page=289 |url=https://books.google.com/books?id=AF-5ptJ0l2gC&pg=PA289}}</ref> Between the 7th and 10th centuries CE a [[Masoretes|group of Jewish scribes]] formalized and expanded this to create the [[Masoretic Text#Numerical Masorah|Numerical Masorah]] to ensure accurate reproduction of the sacred text. It included counts of the number of words in a line, section, book and groups of books, noting the middle stich of a book, word use statistics, and commentary.<ref name="Jewish" /> Standards became such that a deviation in even a single letter in a Torah scroll was considered unacceptable.<ref>[[Mishneh Torah]], Tefillin, Mezuzah, and Sefer Torah, 1:2. Example English translation: {{cite book |title=The Rambam's Mishneh Torah |author=[[Eliyahu Touger]] |publisher=[[Moznaim Publishing Corporation]] |url=https://www.chabad.org/library/article_cdo/aid/925417/jewish/Tefillin-Mezuzah-and-Sefer-Torah-Chapter-One.htm}}</ref> The effectiveness of their error correction method was verified by the accuracy of copying through the centuries demonstrated by discovery of the [[Dead Sea Scrolls]] in 1947–1956, dating from {{Circa|150 BCE-75 CE}}.<ref>{{cite book |author=Brian M. Fagan |title=[[The Oxford Companion to Archaeology]] |section=Dead Sea Scrolls |publisher=[[Oxford University Press]] |date=5 December 1996 |isbn=0195076184}}</ref>
The modern development of [[error correction code]]scodes is credited to [[Richard Hamming]] in 1947.<ref name=Thompson>{{citation|first=Thomas M.|last=Thompson|title=From Error-Correcting Codes through Sphere Packings to Simple Groups|publisher=The Mathematical Association of America|year=1983|series=The Carus Mathematical Monographs (#21)|isbn=0-88385-023-0|page=vii}}</ref> A description of [[Hamming code|Hamming's code]] appeared in [[Claude Shannon]]'s ''A Mathematical Theory of Communication''<ref>{{citation|first=C.E.|last=Shannon|title=A Mathematical Theory of Communication|journal=Bell System Technical Journal|volume=27|issue=3|pages=379–423|year=1948|doi=10.1002/j.1538-7305.1948.tb01338.x|pmid=9230594|hdl=10338.dmlcz/101429|hdl-access=free}}</ref> and was quickly generalized by [[Marcel J. E. Golay]].<ref>{{citation|first=Marcel J. E.|last=Golay|title=Notes on Digital Coding|journal=Proc.I.R.E. (I.E.E.E.)|volume=37|year=1949|page=657}}</ref>