-
Notifications
You must be signed in to change notification settings - Fork 0
/
path---news-curiosity-science-i-nephi-f4739993c75aa8d8d4f6.js.map
1 lines (1 loc) · 32 KB
/
path---news-curiosity-science-i-nephi-f4739993c75aa8d8d4f6.js.map
1
{"version":3,"sources":["webpack:///path---news-curiosity-science-i-nephi-f4739993c75aa8d8d4f6.js","webpack:///./.cache/json/news-curiosity-science-i-nephi.json"],"names":["webpackJsonp","399","module","exports","data","site","siteMetadata","title","subtitle","copyright","author","name","disqusShortname","url","markdownRemark","id","html","fields","tagSlugs","frontmatter","tags","date","description","pathContext","slug"],"mappings":"AAAAA,cAAc,iBAERC,IACA,SAAUC,EAAQC,GCHxBD,EAAAC,SAAkBC,MAAQC,MAAQC,cAAgBC,MAAA,0BAAAC,SAAA,wIAAAC,UAAA,GAAAC,QAA8MC,KAAA,uBAA6BC,gBAAA,GAAAC,IAAA,wBAAmDC,gBAAmBC,GAAA,2JAAAC,KAAA,+rbAAsxbC,QAA0KC,UAAA,qDAAgEC,aAAgBZ,MAAA,wCAAAa,MAAA,+BAAAC,KAAA,2BAAAC,YAAA,wNAA8VC,aAAgBC,KAAA","file":"path---news-curiosity-science-i-nephi-f4739993c75aa8d8d4f6.js","sourcesContent":["webpackJsonp([152549420498134],{\n\n/***/ 399:\n/***/ (function(module, exports) {\n\n\tmodule.exports = {\"data\":{\"site\":{\"siteMetadata\":{\"title\":\"The WordTree Foundation\",\"subtitle\":\"The WordTree Foundation studies the relationships between books, with a special interest in LDS scripture such as the Book of Mormon.\",\"copyright\":\"\",\"author\":{\"name\":\"WordTree Foundation\"},\"disqusShortname\":\"\",\"url\":\"http://wordtree.org\"}},\"markdownRemark\":{\"id\":\"/Users/duane/wordtree/wordtreefoundation.github.io/src/pages/articles/2019-07-27---curiosity-science-i-nephi/index.md absPath of file >>> MarkdownRemark\",\"html\":\"<h2>The Faithful View of “I, Nephi…”</h2>\\n<p>Book of Mormon Central wrote <a href=\\\"https://knowhy.bookofmormoncentral.org/knowhy/why-does-nephi-begin-by-saying-i-nephi\\\">an article</a> about the first sentence of the Book of Mormon:</p>\\n<blockquote>\\n<p>“I, Nephi, having been born of goodly parents, therefore I was taught somewhat in all the learning of my father and having seen many afflictions in the course of my days, nevertheless, having been highly favored of the Lord in all my days; yea, having had a great knowledge of the goodness and the mysteries of God, therefore I make a record of my proceedings in my days.”\\n<br><a href=\\\"https://www.bookofmormonorigins.com/content/1nephi/chapter_01.html\\\">1 Nephi 1:1</a></p>\\n</blockquote>\\n<p>The author links this style of writing to ancient kings, and uses a fascinating linguistic connection to the historical past to lend strength to the hypothesis that the Book of Mormon’s origin is ancient.</p>\\n<table>\\n<thead>\\n<tr>\\n<th>“I, Nephi” Faithful Hypothesis</th>\\n<th>“I, Nephi” Alt. Hypothesis</th>\\n</tr>\\n</thead>\\n<tbody>\\n<tr>\\n<td>1. Nephi copied style of ancient kings</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n<tr>\\n<td>2. Kings said “I, \\n_\\n_\\n_\\n, son of”</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n<tr>\\n<td>2. “in my days” resonates</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n<tr>\\n<td>3. Nephi acknowledges both parents</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n</tbody>\\n</table>\\n<p>This is a wonderful, faithful hypothesis. There isn’t anything wrong with it if you just want reasons to believe the Book of Mormon is holy.</p>\\n<p>One of the beautiful things about truth is that it is strengthened by inspection from multiple perspectives. Curiosity and a thirst for truth drives us to experiment with ideas, and with the powerful tools we have today, we can often investigate literary hypotheses ourselves.</p>\\n<h2>Another Hypothesis?</h2>\\n<p>Let’s say you have another hypothesis: that maybe the Book of Mormon was written in the 19th century, rather than miraculously translated from an ancient source. Your curiosity drives you to want to see deeply into this, and you’re looking for tools. How would you go about testing this?</p>\\n<p>If the Book of Mormon were written in the 1800s, we might expect to see other books from its time with similar phrasing. Maybe “I, Nephi, having been born of goodly parents…” is a <a href=\\\"https://www.everythingisaremix.info/watch-the-series\\\">remix</a> of language and ideas from the 1800s?</p>\\n<p>Let’s look at elements of the faithful interpretation and see if we can construct an alternative hypothesis worthy of testing:</p>\\n<table>\\n<thead>\\n<tr>\\n<th>“I, Nephi” Faithful Hypothesis</th>\\n<th>“I, Nephi” Alt. Hypothesis</th>\\n</tr>\\n</thead>\\n<tbody>\\n<tr>\\n<td>1. Nephi used style of ancient kings</td>\\n<td> \\nJoseph used style of 19th C. writers?</td>\\n</tr>\\n<tr>\\n<td>2. Kings said “I, \\n_\\n_\\n_\\n, son of”</td>\\n<td> \\n19th C. authors wrote this way?</td>\\n</tr>\\n<tr>\\n<td>2. “in my days” resonates</td>\\n<td> \\n19th C. autobiography style resonates?</td>\\n</tr>\\n<tr>\\n<td>3. Nephi acknowledges both parents</td>\\n<td> \\n19th C. authors mention both parents?</td>\\n</tr>\\n</tbody>\\n</table>\\n<h3>Joseph used style of 19th C. writers?</h3>\\n<p>Rather than Nephi being inspired by monumental inscriptions of ancient mesopotamian kings, could the author of the Book of Mormon (presumably Joseph) have used the style of 19th century writers? Did 19th century writers write this way?</p>\\n<h3>19th century authors wrote with “I, [name], son of…” phrase?</h3>\\n<p>Rather than Nephi using the “I, [name], son of [name]” terminology from ancient kings, could Joseph have read this in 19th century books? Did they write that way back then?</p>\\n<h3>19th century autobiography style resonates?</h3>\\n<p>Rather than Nephi using an autobiographical style that includes a record of things “in his day”, could Joseph have written something like this in the 19th century? Did autobiographical texts talk about parentage, education, and religious standing?</p>\\n<h3>19th century authors mention both parents?</h3>\\n<p>Rather than Nephi deviating from the pattern of Kings mentioning fathers, could Joseph have taken inspiration from 19th century authors to mention parents in the plural? Did anyone in the 19th century attribute good to both parents?</p>\\n<h2>Getting the Data</h2>\\n<p>We can get a lot of data from archive.org, which has meticulously gathered, scanned, and OCRed centuries-old books. Using <a href=\\\"https://github.com/wordtreefoundation/bomdb\\\">archdown</a> you could download all of these books in a nice text format with header info.</p>\\n<p>Or, you could use our English Books archive, which is a handy copy of archive.org’s 1650 to 1829 books: download <a href=\\\"http://data.wordtree.org/archive-org-english-books-1650-1829-asof-2019-06-24.tar.gz\\\">pre-1830 Books from Archive.org</a> as a <code class=\\\"language-text\\\">.tar.gz</code> zip file (~30 GB of data, ~137 GB uncompressed).</p>\\n<p>Once you have the data, unzip the archive:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ gunzip http://data.wordtree.org/archive-org-english-books-1650-1829-asof-2019-06-24.tar.gz</code></pre>\\n </div>\\n<p>It will create a <code class=\\\"language-text\\\">library/</code> folder in the directory you unzip it into. That <code class=\\\"language-text\\\">library/</code> folder will contain many two-letter subfolders, each containing two-letter subfolders themselves. Finally, in those subfolders, you’ll find <code class=\\\"language-text\\\">.md</code> files that are text files containing the actual book contents.</p>\\n<p>Since these books are raw OCR conversions of scanned pages, the quality of the text varies quite a bit. The quality is sufficient that we can still test our hypothesis, however.</p>\\n<p>You can now search 137 GB of text, all from books written prior to the Book of Mormon’s publication date!</p>\\n<h2>Experimenting with Unix Tools</h2>\\n<p>If you’re familiar with the <code class=\\\"language-text\\\">grep</code> command-line utility, and regular expressions, you can search precisely for any pattern you’d like. For example, let’s search the library for Nephi:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -r 'Nephi' library/</code></pre>\\n </div>\\n<p>Some example matches:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">Sor, Tyrus, metropolis Phoenices, in tribu Nephihalim, Et Theo-\\n^K ^arthia, which had formed king ufThehesby Nephile; who with\\n1'ratt Nephi. Treasurer.\\nNephi I SEVIER COUNTY.\\nNephi\\n...\\n[734 results]</code></pre>\\n </div>\\n<p>Whoa! There’s a lot of data here. More than I expected. This search yielded 734 results in about 5 minutes of searching on my PC (having an SSD hard drive helps).</p>\\n<p>A lot of the results are infix matches—“Nephi” is part of “Nephilim” and “Mount Nephin” for example. Can we tighten the search up so it doesn’t show these?</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -Er '\\\\bNephi\\\\b' library/</code></pre>\\n </div>\\n<p>So now we’re using a more advanced regular expression, with the <code class=\\\"language-text\\\">\\\\b</code> word-boundary marker. This ensures that any match of “Nephi” will be just Nephi, and not Nephilim, for example. With this addition, we reduce the results to 102 matches!</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">along the mountain base from'Nephi to Willard.\\nNephi,\\n1'ratt Nephi. Treasurer.\\nNephi I SEVIER COUNTY.\\n...\\nis acted upon (Book of Mormon, II. Nephi, Ch. 2). From this\\nGodwiJnV Uva MilUnis Nephi^\\nArabian desert; the Hagarites, Itureans (Jetur), Nephi-\\nNephi.\\nmany men call it Nephi.\\n...\\n[102 results]</code></pre>\\n </div>\\n<p>Funny! It looks like a reference to the Book of Mormon is in there. Well, that can’t be right. We’re clearly dealing with noisy data—yup, looks like archive.org mis-dated an edition of the Encyclopedia Britannica as written in 1768, when in actuality it was written after 1830.</p>\\n<p>Anyway, we can see a lot of references to Nephi here. Some of them are from the Bible… wait, the bible? It turns out Maccabees contains a reference to a place called Nephi, and many bibles back then used to contain the Apocrypha.</p>\\n<p>What if we want to search for the pattern that Book of Mormon Central is talking about, though—something like “I, [so-and-so], (son or daughter) of [so-and-so]…“?</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -A2 -E '\\\\bI\\\\s?,[\\\\s]+[A-Z][a-z][a-z]' library/ \\\\\\n | grep -B2 -A2 -Ei '\\\\b(son|daughter) of'</code></pre>\\n </div>\\n<p>This is a more advanced regular expression, and since this is more about tools, if you’d like to understand regexps better, I’ll just point you to a good <a href=\\\"https://www.regular-expressions.info/tutorial.html\\\">tutorial</a>.</p>\\n<p>This search yields some interesting results, more than 100 matches, some of which I’ll highlight:</p>\\n<blockquote>\\n<p>“This is the account of what I, Ibrahim, the son of Candu the merchant, have seen ; this is what I have been present at, and a witness to: where is the Malay who has seen the like that I, Ibrahim, the son of Candu, have seen since I arrived in the great country of Bengal!!”\\n<br><a href=\\\"https://archive.org/details/jouralofresidenc00mari/page/196\\\">Journal of a Residence in India, 1812</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“I, Cennino, son of Andrea Cennini born in the Colle di Valdelsa, was instructed in these arts by Agnolo, son of Taddeo of Florence, my master, who learned the art from Taddeo, his father, the godson of Giotto, whose disciple he had been for twenty-four years.”\\n<br><a href=\\\"https://archive.org/details/quarterlyreview15protgoog/page/n94\\\">The Quarterly Review, London, 1845</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“I, Charlotte K. Sibley, of the city of Fredericksburgh, State of Virginia, do make oath that my maiden name was Charlotte Kendall ; that I was born in Sackett’s Harbor, State of New York, the daughter of William Kendall and Charlotte Howard, both of the city of Boston…”\\n<br><a href=\\\"https://archive.org/details/unitedstatescon49offigoog/page/n1112\\\">Reports of Committees of the Senate of the United States, Washington, 1888</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“By the favor and grace of God, I, Wahram, lord of lords, and Antipatrik, son of Grigor, a grandee of Armenia, of the race of Palhawouny, and descendant of the family of St. Grigor, the light of Armenia. In the hope in Christ I have the laid the foundations, and built this holy church Marmarachen…”\\n<br><a href=\\\"https://archive.org/details/in.ernet.dli.2015.104655/page/n365\\\">Asiatic Journal, London, 1824</a></p>\\n</blockquote>\\n<p>Could we take it a step further? What if there were 19th century books that are even more similar to the “I, Nephi, having been born of goodly parents…” phrase? Could we search for that? Here’s an advanced regular expression that looks for the word “I”, followed by a comma, and then a capitalized word (e.g. name), followed by the words “born” and “parent(s)” in any of the next two lines:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -A2 -Er '\\\\bI,[\\\\s]+[A-Z][a-z][a-z]' library/ \\\\\\n | grep -B2 -A2 -i 'born' \\\\\\n | grep -B2 -A2 -i 'parent'</code></pre>\\n </div>\\n<p>Again, quite a few matches! Here are two interesting ones:</p>\\n<blockquote>\\n<p>“I, John Barnard was born at Boston, 6th Nov. 1681; descended from reputable parents, viz. John and Esther Barnard, remarkable for their piety and benevolence, who devoted me to the service of God, in the work of ministry, from my very conception and birth; and accordingly took special care to instruct me themselves in the principles of the Christian Religion, and kept me close at school to furnish my young mind with the knowledge of letters.”\\n<br><a href=\\\"https://archive.org/details/collectionss3v5mass/page/178\\\">Collections of the Massachusetts Historical Society, Boston, 1836, p. 178</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“I, Ingulphus, an humble servant of God, born of English parents, in the most beautiful city of London, for attaining to learning, was first put to Westminster, and after to study at Oxford, &c.”\\n<br><a href=\\\"https://archive.org/details/cihm_18699/page/n95\\\">A General collection of the best and most interesting voyages and travels in all parts of the world, Vol. 2. Philadelphia. 1810. p. 87.</a></p>\\n</blockquote>\\n<p>Based on this search, it seems clear to me that an alternative hypothesis exists next to the faithful hypothesis: that the author of the Book of Mormon could have remixed 19th century language and ideas to come up with the first verse of the Book of Mormon:</p>\\n<h2>Alternate Hypothesis</h2>\\n<p>John Barnard, above, employs a linguistic style that very nearly matches the first verse of 1 Nephi, and does so with remarkably similar content:</p>\\n<ul>\\n<li>uses “I, [name], born … reputable parents” pattern</li>\\n<li>honors both his parents</li>\\n<li>connects education and schooling to parents</li>\\n<li>speaks to his & his parents devotion to God</li>\\n<li>the work is an autobiography</li>\\n<li>written in 1836, and published in Boston, USA</li>\\n</ul>\\n<p>Given that someone else wrote this way in the 19th century, in the same region as Joseph Smith, it seems plausible that the alternate hypothesis has good standing when compared to the faithful hypothesis.</p>\\n<p>If you’d like to see more connections between the Book of Mormon & 19th century literature, check out our study on <a href=\\\"http://wordtree.org/thelatewar/\\\">The Late War Between the United States and Great Britain</a>.</p>\",\"fields\":{\"tagSlugs\":[\"/tags/grep/\",\"/tags/book-of-mormon/\",\"/tags/cli/\"]},\"frontmatter\":{\"title\":\"Curiosity, Data Science, and I, Nephi\",\"tags\":[\"grep\",\"book-of-mormon\",\"cli\"],\"date\":\"2019-07-27T22:00:00.000Z\",\"description\":\"Book of Mormon Central claims that the first sentence of the Book of Mormon attests to its ancient and authentic origin. Suppose you had an alternate hypothesis, would you be able to test it using data science?\"}}},\"pathContext\":{\"slug\":\"/news/curiosity-science-i-nephi\"}}\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// path---news-curiosity-science-i-nephi-f4739993c75aa8d8d4f6.js","module.exports = {\"data\":{\"site\":{\"siteMetadata\":{\"title\":\"The WordTree Foundation\",\"subtitle\":\"The WordTree Foundation studies the relationships between books, with a special interest in LDS scripture such as the Book of Mormon.\",\"copyright\":\"\",\"author\":{\"name\":\"WordTree Foundation\"},\"disqusShortname\":\"\",\"url\":\"http://wordtree.org\"}},\"markdownRemark\":{\"id\":\"/Users/duane/wordtree/wordtreefoundation.github.io/src/pages/articles/2019-07-27---curiosity-science-i-nephi/index.md absPath of file >>> MarkdownRemark\",\"html\":\"<h2>The Faithful View of “I, Nephi…”</h2>\\n<p>Book of Mormon Central wrote <a href=\\\"https://knowhy.bookofmormoncentral.org/knowhy/why-does-nephi-begin-by-saying-i-nephi\\\">an article</a> about the first sentence of the Book of Mormon:</p>\\n<blockquote>\\n<p>“I, Nephi, having been born of goodly parents, therefore I was taught somewhat in all the learning of my father and having seen many afflictions in the course of my days, nevertheless, having been highly favored of the Lord in all my days; yea, having had a great knowledge of the goodness and the mysteries of God, therefore I make a record of my proceedings in my days.”\\n<br><a href=\\\"https://www.bookofmormonorigins.com/content/1nephi/chapter_01.html\\\">1 Nephi 1:1</a></p>\\n</blockquote>\\n<p>The author links this style of writing to ancient kings, and uses a fascinating linguistic connection to the historical past to lend strength to the hypothesis that the Book of Mormon’s origin is ancient.</p>\\n<table>\\n<thead>\\n<tr>\\n<th>“I, Nephi” Faithful Hypothesis</th>\\n<th>“I, Nephi” Alt. Hypothesis</th>\\n</tr>\\n</thead>\\n<tbody>\\n<tr>\\n<td>1. Nephi copied style of ancient kings</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n<tr>\\n<td>2. Kings said “I, \\n_\\n_\\n_\\n, son of”</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n<tr>\\n<td>2. “in my days” resonates</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n<tr>\\n<td>3. Nephi acknowledges both parents</td>\\n<td> \\n \\n \\n?</td>\\n</tr>\\n</tbody>\\n</table>\\n<p>This is a wonderful, faithful hypothesis. There isn’t anything wrong with it if you just want reasons to believe the Book of Mormon is holy.</p>\\n<p>One of the beautiful things about truth is that it is strengthened by inspection from multiple perspectives. Curiosity and a thirst for truth drives us to experiment with ideas, and with the powerful tools we have today, we can often investigate literary hypotheses ourselves.</p>\\n<h2>Another Hypothesis?</h2>\\n<p>Let’s say you have another hypothesis: that maybe the Book of Mormon was written in the 19th century, rather than miraculously translated from an ancient source. Your curiosity drives you to want to see deeply into this, and you’re looking for tools. How would you go about testing this?</p>\\n<p>If the Book of Mormon were written in the 1800s, we might expect to see other books from its time with similar phrasing. Maybe “I, Nephi, having been born of goodly parents…” is a <a href=\\\"https://www.everythingisaremix.info/watch-the-series\\\">remix</a> of language and ideas from the 1800s?</p>\\n<p>Let’s look at elements of the faithful interpretation and see if we can construct an alternative hypothesis worthy of testing:</p>\\n<table>\\n<thead>\\n<tr>\\n<th>“I, Nephi” Faithful Hypothesis</th>\\n<th>“I, Nephi” Alt. Hypothesis</th>\\n</tr>\\n</thead>\\n<tbody>\\n<tr>\\n<td>1. Nephi used style of ancient kings</td>\\n<td> \\nJoseph used style of 19th C. writers?</td>\\n</tr>\\n<tr>\\n<td>2. Kings said “I, \\n_\\n_\\n_\\n, son of”</td>\\n<td> \\n19th C. authors wrote this way?</td>\\n</tr>\\n<tr>\\n<td>2. “in my days” resonates</td>\\n<td> \\n19th C. autobiography style resonates?</td>\\n</tr>\\n<tr>\\n<td>3. Nephi acknowledges both parents</td>\\n<td> \\n19th C. authors mention both parents?</td>\\n</tr>\\n</tbody>\\n</table>\\n<h3>Joseph used style of 19th C. writers?</h3>\\n<p>Rather than Nephi being inspired by monumental inscriptions of ancient mesopotamian kings, could the author of the Book of Mormon (presumably Joseph) have used the style of 19th century writers? Did 19th century writers write this way?</p>\\n<h3>19th century authors wrote with “I, [name], son of…” phrase?</h3>\\n<p>Rather than Nephi using the “I, [name], son of [name]” terminology from ancient kings, could Joseph have read this in 19th century books? Did they write that way back then?</p>\\n<h3>19th century autobiography style resonates?</h3>\\n<p>Rather than Nephi using an autobiographical style that includes a record of things “in his day”, could Joseph have written something like this in the 19th century? Did autobiographical texts talk about parentage, education, and religious standing?</p>\\n<h3>19th century authors mention both parents?</h3>\\n<p>Rather than Nephi deviating from the pattern of Kings mentioning fathers, could Joseph have taken inspiration from 19th century authors to mention parents in the plural? Did anyone in the 19th century attribute good to both parents?</p>\\n<h2>Getting the Data</h2>\\n<p>We can get a lot of data from archive.org, which has meticulously gathered, scanned, and OCRed centuries-old books. Using <a href=\\\"https://github.com/wordtreefoundation/bomdb\\\">archdown</a> you could download all of these books in a nice text format with header info.</p>\\n<p>Or, you could use our English Books archive, which is a handy copy of archive.org’s 1650 to 1829 books: download <a href=\\\"http://data.wordtree.org/archive-org-english-books-1650-1829-asof-2019-06-24.tar.gz\\\">pre-1830 Books from Archive.org</a> as a <code class=\\\"language-text\\\">.tar.gz</code> zip file (~30 GB of data, ~137 GB uncompressed).</p>\\n<p>Once you have the data, unzip the archive:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ gunzip http://data.wordtree.org/archive-org-english-books-1650-1829-asof-2019-06-24.tar.gz</code></pre>\\n </div>\\n<p>It will create a <code class=\\\"language-text\\\">library/</code> folder in the directory you unzip it into. That <code class=\\\"language-text\\\">library/</code> folder will contain many two-letter subfolders, each containing two-letter subfolders themselves. Finally, in those subfolders, you’ll find <code class=\\\"language-text\\\">.md</code> files that are text files containing the actual book contents.</p>\\n<p>Since these books are raw OCR conversions of scanned pages, the quality of the text varies quite a bit. The quality is sufficient that we can still test our hypothesis, however.</p>\\n<p>You can now search 137 GB of text, all from books written prior to the Book of Mormon’s publication date!</p>\\n<h2>Experimenting with Unix Tools</h2>\\n<p>If you’re familiar with the <code class=\\\"language-text\\\">grep</code> command-line utility, and regular expressions, you can search precisely for any pattern you’d like. For example, let’s search the library for Nephi:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -r 'Nephi' library/</code></pre>\\n </div>\\n<p>Some example matches:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">Sor, Tyrus, metropolis Phoenices, in tribu Nephihalim, Et Theo-\\n^K ^arthia, which had formed king ufThehesby Nephile; who with\\n1'ratt Nephi. Treasurer.\\nNephi I SEVIER COUNTY.\\nNephi\\n...\\n[734 results]</code></pre>\\n </div>\\n<p>Whoa! There’s a lot of data here. More than I expected. This search yielded 734 results in about 5 minutes of searching on my PC (having an SSD hard drive helps).</p>\\n<p>A lot of the results are infix matches—“Nephi” is part of “Nephilim” and “Mount Nephin” for example. Can we tighten the search up so it doesn’t show these?</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -Er '\\\\bNephi\\\\b' library/</code></pre>\\n </div>\\n<p>So now we’re using a more advanced regular expression, with the <code class=\\\"language-text\\\">\\\\b</code> word-boundary marker. This ensures that any match of “Nephi” will be just Nephi, and not Nephilim, for example. With this addition, we reduce the results to 102 matches!</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">along the mountain base from'Nephi to Willard.\\nNephi,\\n1'ratt Nephi. Treasurer.\\nNephi I SEVIER COUNTY.\\n...\\nis acted upon (Book of Mormon, II. Nephi, Ch. 2). From this\\nGodwiJnV Uva MilUnis Nephi^\\nArabian desert; the Hagarites, Itureans (Jetur), Nephi-\\nNephi.\\nmany men call it Nephi.\\n...\\n[102 results]</code></pre>\\n </div>\\n<p>Funny! It looks like a reference to the Book of Mormon is in there. Well, that can’t be right. We’re clearly dealing with noisy data—yup, looks like archive.org mis-dated an edition of the Encyclopedia Britannica as written in 1768, when in actuality it was written after 1830.</p>\\n<p>Anyway, we can see a lot of references to Nephi here. Some of them are from the Bible… wait, the bible? It turns out Maccabees contains a reference to a place called Nephi, and many bibles back then used to contain the Apocrypha.</p>\\n<p>What if we want to search for the pattern that Book of Mormon Central is talking about, though—something like “I, [so-and-so], (son or daughter) of [so-and-so]…“?</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -A2 -E '\\\\bI\\\\s?,[\\\\s]+[A-Z][a-z][a-z]' library/ \\\\\\n | grep -B2 -A2 -Ei '\\\\b(son|daughter) of'</code></pre>\\n </div>\\n<p>This is a more advanced regular expression, and since this is more about tools, if you’d like to understand regexps better, I’ll just point you to a good <a href=\\\"https://www.regular-expressions.info/tutorial.html\\\">tutorial</a>.</p>\\n<p>This search yields some interesting results, more than 100 matches, some of which I’ll highlight:</p>\\n<blockquote>\\n<p>“This is the account of what I, Ibrahim, the son of Candu the merchant, have seen ; this is what I have been present at, and a witness to: where is the Malay who has seen the like that I, Ibrahim, the son of Candu, have seen since I arrived in the great country of Bengal!!”\\n<br><a href=\\\"https://archive.org/details/jouralofresidenc00mari/page/196\\\">Journal of a Residence in India, 1812</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“I, Cennino, son of Andrea Cennini born in the Colle di Valdelsa, was instructed in these arts by Agnolo, son of Taddeo of Florence, my master, who learned the art from Taddeo, his father, the godson of Giotto, whose disciple he had been for twenty-four years.”\\n<br><a href=\\\"https://archive.org/details/quarterlyreview15protgoog/page/n94\\\">The Quarterly Review, London, 1845</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“I, Charlotte K. Sibley, of the city of Fredericksburgh, State of Virginia, do make oath that my maiden name was Charlotte Kendall ; that I was born in Sackett’s Harbor, State of New York, the daughter of William Kendall and Charlotte Howard, both of the city of Boston…”\\n<br><a href=\\\"https://archive.org/details/unitedstatescon49offigoog/page/n1112\\\">Reports of Committees of the Senate of the United States, Washington, 1888</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“By the favor and grace of God, I, Wahram, lord of lords, and Antipatrik, son of Grigor, a grandee of Armenia, of the race of Palhawouny, and descendant of the family of St. Grigor, the light of Armenia. In the hope in Christ I have the laid the foundations, and built this holy church Marmarachen…”\\n<br><a href=\\\"https://archive.org/details/in.ernet.dli.2015.104655/page/n365\\\">Asiatic Journal, London, 1824</a></p>\\n</blockquote>\\n<p>Could we take it a step further? What if there were 19th century books that are even more similar to the “I, Nephi, having been born of goodly parents…” phrase? Could we search for that? Here’s an advanced regular expression that looks for the word “I”, followed by a comma, and then a capitalized word (e.g. name), followed by the words “born” and “parent(s)” in any of the next two lines:</p>\\n<div class=\\\"gatsby-highlight\\\">\\n <pre class=\\\"language-text\\\"><code class=\\\"language-text\\\">$ grep -A2 -Er '\\\\bI,[\\\\s]+[A-Z][a-z][a-z]' library/ \\\\\\n | grep -B2 -A2 -i 'born' \\\\\\n | grep -B2 -A2 -i 'parent'</code></pre>\\n </div>\\n<p>Again, quite a few matches! Here are two interesting ones:</p>\\n<blockquote>\\n<p>“I, John Barnard was born at Boston, 6th Nov. 1681; descended from reputable parents, viz. John and Esther Barnard, remarkable for their piety and benevolence, who devoted me to the service of God, in the work of ministry, from my very conception and birth; and accordingly took special care to instruct me themselves in the principles of the Christian Religion, and kept me close at school to furnish my young mind with the knowledge of letters.”\\n<br><a href=\\\"https://archive.org/details/collectionss3v5mass/page/178\\\">Collections of the Massachusetts Historical Society, Boston, 1836, p. 178</a></p>\\n</blockquote>\\n<blockquote>\\n<p>“I, Ingulphus, an humble servant of God, born of English parents, in the most beautiful city of London, for attaining to learning, was first put to Westminster, and after to study at Oxford, &c.”\\n<br><a href=\\\"https://archive.org/details/cihm_18699/page/n95\\\">A General collection of the best and most interesting voyages and travels in all parts of the world, Vol. 2. Philadelphia. 1810. p. 87.</a></p>\\n</blockquote>\\n<p>Based on this search, it seems clear to me that an alternative hypothesis exists next to the faithful hypothesis: that the author of the Book of Mormon could have remixed 19th century language and ideas to come up with the first verse of the Book of Mormon:</p>\\n<h2>Alternate Hypothesis</h2>\\n<p>John Barnard, above, employs a linguistic style that very nearly matches the first verse of 1 Nephi, and does so with remarkably similar content:</p>\\n<ul>\\n<li>uses “I, [name], born … reputable parents” pattern</li>\\n<li>honors both his parents</li>\\n<li>connects education and schooling to parents</li>\\n<li>speaks to his & his parents devotion to God</li>\\n<li>the work is an autobiography</li>\\n<li>written in 1836, and published in Boston, USA</li>\\n</ul>\\n<p>Given that someone else wrote this way in the 19th century, in the same region as Joseph Smith, it seems plausible that the alternate hypothesis has good standing when compared to the faithful hypothesis.</p>\\n<p>If you’d like to see more connections between the Book of Mormon & 19th century literature, check out our study on <a href=\\\"http://wordtree.org/thelatewar/\\\">The Late War Between the United States and Great Britain</a>.</p>\",\"fields\":{\"tagSlugs\":[\"/tags/grep/\",\"/tags/book-of-mormon/\",\"/tags/cli/\"]},\"frontmatter\":{\"title\":\"Curiosity, Data Science, and I, Nephi\",\"tags\":[\"grep\",\"book-of-mormon\",\"cli\"],\"date\":\"2019-07-27T22:00:00.000Z\",\"description\":\"Book of Mormon Central claims that the first sentence of the Book of Mormon attests to its ancient and authentic origin. Suppose you had an alternate hypothesis, would you be able to test it using data science?\"}}},\"pathContext\":{\"slug\":\"/news/curiosity-science-i-nephi\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/json-loader!./.cache/json/news-curiosity-science-i-nephi.json\n// module id = 399\n// module chunks = 152549420498134"],"sourceRoot":""}