#!/usr/bin/env python
# coding: utf-8
# # The Granville Sharp rule (Nestle1904GBI)
#
# **Work in progress**
# ## Table of content
# * 1 - Introduction
# * 1.1 - Why is this relevant?
# * 1.2 - Translating into Text-Fabric queries
# * 2 - Load Text-Fabric app and data
# * 3 - Performing the queries
# * 3.1 - TBD
# * 3.2 - TBD
# * 4 - Atribution and footnotes
# * 5 - Required libraries
# # 1 - Introduction
# ##### [Back to TOC](#TOC)
#
# The Granville Sharp rule is formulated as:
#
# > "When the copulative καὶ connects two nouns of the same case,(...) if the article ὁ, or any of its cases, precedes the first of the said nouns or participles, and is not repeated before the second noun or participle, the latter always relates to the same person that is expressed or described by the first noun or participle ..." 1
# ## 1.1 - Why is this relevant?
#
# This rule is often refered to in order to prove the deity of Christ using textual and grammatical means (just as done by Granville Sharp). It is often applied to verses like Titus 2:13: 2
#
# > προσδεχόμενοι τὴν μακαρίαν ἐλπίδα καὶ ἐπιφάνειαν τῆς δόξης τοῦ μεγάλου θεοῦ καὶ σωτῆρος ἡμῶν Ἰησοῦ Χριστοῦ,
# ## 1.2 - Translating it into a Text-Fabric query
#
# The following Text-Fabric query will identify a list of instances where the conditions referred to by the Granville Sharp rule are met. The results would assist in determining the exceptions and limitations of this rule.
#
# This Text-Fabric query will produce:
#
# - Find all sequences of two substantive nouns in the same case.
# - Check if they share the same definite article.
#
# It will return only instances where:
#
# - The two nouns are singular
# - The article is arthrous (occurs with the nouns)
# - The two nouns do not stand in a possessive relationship (one does not modify the other)
# - They do not constitute a proper name or geographical term (this can be done using Lauw-Nida classifications)
# - They are not separated by a modifier that would prevent them from referring to the same thing
#
# ## 2 - Load app and data
# ##### [Back to TOC](#TOC)
# In[1]:
get_ipython().run_line_magic('load_ext', 'autoreload')
get_ipython().run_line_magic('autoreload', '2')
# In[2]:
# Loading the Text-Fabric code
# Note: it is assumed Text-Fabric is installed in your environment
from tf.fabric import Fabric
from tf.app import use
# In[3]:
# load the N1904 app and data
N1904 = use ("tonyjurg/Nestle1904GBI", version="0.4", hoist=globals())
# In[ ]:
# The following will push the Text-Fabric stylesheet to this notebook (to facilitate proper display with notebook viewer)
N1904.dh(N1904.getCss())
# # 3 - Performing the queries
# ##### [Back to TOC](#TOC)
# ## 3.1 - TBD
#
# TBD
#
# ## 3.2 - TBD
#
# TBD
# # 4 - Attribution and footnotes
# ##### [Back to TOC](#TOC)
#
# #### Footnotes:
#
# 1 Sharp, Granville (1798). [*Remarks on the Uses of the Definitive Article in the Greek Text of the New Testament, Containing Many New Proofs of the Divinity of Christ, from Passages Which Are Wrongly Translated in the Common English Version*](https://archive.org/details/remarksonusesofd00sharrich/page/2/mode/2up), Third Edition. (London: C. & W. Galabin, 1803), 3.
#
# 2 For example in: Benjamin L. Merkle. *Exegetical gems from Biblical Greek* (Grand Rappids, MI: Baker Accademics, 2019), 39-43.
#
# See also the extensive discussion on this subject in: Daniel B. Wallace, *The Basics of New Testament Syntax*, AER Edition January 2009 (Grand Rapids, MI: Zondervan, 2009), 120-128.
# # 5 - Required libraries
# ##### [Back to TOC](#TOC)
#
# The scripts in this notebook require (beside `text-fabric`) the following Python libraries to be installed in the environment:
#
# tabulate
#
# You can install any missing library from within Jupyter Notebook using either`pip` or `pip3`.