Search for a word NOT before another word
I want to find all instances of a certain word where another word does not occur before it. For example, I would like to find all instances of Jesus where it does not have the word "Lord" directly before. This search does not work as expected:
Jesus ANDNOT AFTER 1 WORD Lord
This finds verses where the words Jesus and Lord appear, but "Lord" does not appear before "Jesus". It does not find verses like Matt 1:1 where only Jesus appears.
How would I do this search?
Comments
-
You could probably do it using passage lists and subtraction of the results. Search tabs have command "Save as passage list" so you save the results as one PL for all occurrences of Jesus, another for all occurrences of Lord BEFORE 1 word Jesus, and then subtract the two lists by using the Merge > Intersection option in the PL tab.
It would miss any occurrence of Jesus alone without being preceded by Lord which occurred in a verse that ALSO has "Lord Jesus" in it somewhere else. But other than that it should work. Sorry I don't have time to work up a more detailed description of the procedure for you.
0 -
How would I do this search?
In English (Bible Search):
Jesus -"Lord Jesus"
In Greek (these Morph Searches has the same results):
lemma:Ἰησοῦς ANDNOT (lemma:κύριος BEFORE 1 WORD lemma:Ἰησοῦς)
lemma:Ἰησοῦς ANDNOT (lemma:κύριος BEFORE 1-2 WORDS lemma:Ἰησοῦς)
Noticed John 11:21 is found by these searches where "Jesus" immediately precedes "Lord". In English, Romans 10:9 is found in a variety of translations.
Keep Smiling [:)]
0 -
See if this gives you what you're looking for,,
"Jesus" ANDNOT "Lord Jesus"
Dell Lap Top Win 10_Home, Logos 7,
Samsung gs7 phone
0 -
See if this gives you what you're looking for,,
"Jesus" ANDNOT "Lord Jesus"
That is equivalent to what KS4J suggested: Jesus -"Lord Jesus"
The minus sign is shorthand for ANDNOT, and you don't need quotation marks around a single word that isn't a phrase.
My answer above was really dumb! I can't believe I didn't think of this, KS4J and Darrell. Thanks. [:$]
0 -
My answer above was really dumb! I can't believe I didn't think of this, KS4J and Darrell. Thanks.
For dumb ideas, glad to be among friends [:$] My initial thought was passage list subtraction, then noticed you had already replied. Later had an aha! moment [I] when I realized that
Jesus where it does not have the word "Lord" directly before
is equivalent to excluding the phrase "Lord Jesus"; then wondered if minus would work with a phrase for searching (since minus works with dynamic collection rules). Personally learned minus worked [Y] in a Bible Search, but does not work with parenthesis in Morph Search so used ANDNOT.
Keep Smiling [:)]
0 -
See if this gives you what you're looking for,,
"Jesus" ANDNOT "Lord Jesus"
I tried this, but it is not what I want. The problem is that if a verse has both "Jesus" and "Lord Jesus" it will not show up in the search results.
For example if you search for "life" ANDNOT "the life", it will not find 1 John 1:2, since both "life" and "the life" occur.
0 -
"jesus" ANDNOT "lord" = 762 verses ESV
ANDNOT "lord jesus" also takes away 'jesus' as well from the phrase the same as you are getting for the "the life", but there will be an instance or two where youy will still get Lord as well, but most are filtered - hey its not perfect, ya'kno..
DISCLAIMER: What you do on YOUR computer is your doing.
0 -
See if this gives you what you're looking for,,
"Jesus" ANDNOT "Lord Jesus"
I tried this, but it is not what I want. The problem is that if a verse has both "Jesus" and "Lord Jesus" it will not show up in the search results.
Back to passage list idea: could create a passage list for Bible Search:
Jesus -"Lord Jesus"
then do a Bible Search for:
Jesus WITHIN 100 WORDS "Lord Jesus"
to find verses where both occur and add to passage list e.g. Acts 19:13 and 1 Peter 1:3 (doubt 1 Corinthians 5:4 nor 2 Thessalonians 1:12 would be added since "Lord Jesus" occurs twice in those verses):
For example if you search for "life" ANDNOT "the life", it will not find 1 John 1:2, since both "life" and "the life" occur.
Bit more challenging since Greek usage in 1 John 1:2 is literally "the life" and "the life the eternal" so both uses have the definite article. May try syntax searching later since noticed "the life" are in different primary clauses (PC):
Keep Smiling [:)]
0 -
"jesus" ANDNOT "lord" = 762 verses ESV
The ANDNOT "lord" excludes Acts 19:13 and 1 Peter 1:3 from search results (since Lord does appear in those verses).
Keep Smiling [:)]
0 -
For example if you search for "life" ANDNOT "the life", it will not find 1 John 1:2, since both "life" and "the life" occur.
Bit more challenging since Greek usage in 1 John 1:2 is literally "the life" and "the life the eternal" so both uses have the definite article. May try syntax searching later since noticed "the life" are in different primary clauses (PC):
Syntax search can find "the life" and "the life the eternal" separately. With definer being present, syntax search finds life with a definer (often eternal):
Keep Smiling [:)]
0 -
KS4J,
Well it is not a bug, I can duplicate the same results from another program that has absolutely nothing in common with L4, So it is what it is.........but still not sure why you would do a search like that, of course I have seen some others that I did not understand why....of cousre no one ever says why, they just say that it doesn't give them the results they seek...?
DISCLAIMER: What you do on YOUR computer is your doing.
0 -
For example if you search for "life" ANDNOT "the life", it will not find 1 John 1:2, since both "life" and "the life" occur.
Here's a way you can find these -- but it may be more trouble than what you care to put out.
First, do a Bible search for "life" (display as "Aligned") and export the results to an Excel file. My search of ESV in the NT found 205 results in 186 vs.
In the Excel file, notice that there are several different columns, one labeled as "preceding context" and one labeled as "hit". Select the column labeled "preceding context" -- Don't select the column header (click in cell under "preceding context", hold shift key down, hit End key, hit Down key)
Copy this selection and paste into Notepad++, a free text editor that understands Regular Expressions.
Click Search -> Replace...
In the dialog, make sure the "Regular Expression" is selected. In the Find box, copy and paste this expression -- (.*)\s(.*\>)
In the Replace box type \2 -- Now Click Replace All
You should be left with the last word of each sentence. Copy these and go back to Excel. Click in the cell under "preceding context" and paste.
Now you can sort on this column and all the hits which have "the" before them will be together. Delete these lines and you have your final results. You can resort again on the Reference column to get Bible books together. I found 192 hits.
Sounds complicated, but once you've done it a time or two it really isn't that bad.
πάντα εἰς δόξαν θεοῦ ποιεῖτε
0 -
This finds verses where the words Jesus and Lord appear, but "Lord" does not appear before "Jesus". It does not find verses like Matt 1:1 where only Jesus appears.
How would I do this search?
One option is a Syntax Search. Caveat: Greek sentences do not align with verse numbering: some verse numbers have more than one Greek sentence (e.g. 1 John 1:2) while some Greek sentences have more than one verse number(e.g. Ephesians 1:3-14 is one Greek sentence). Some word groups within one Greek sentence span verse numbers (e.g. Acts 1:1-2 and 2 Timothy 1:8-10)
First created syntax search to find word groups with "Lord Jesus" (with matching skip levels between word group and group along with highlighting words in search results):
that includes Acts 19:13 "Lord Jesus", followed by searching for word groups that do not have κύριος (Lord):
Acts 19:13 Ἰησοῦς (Jesus) is highlighted in a word group, which does not have "Lord Jesus"
The search results can be saved as a passage list so need to remember some verses have "Lord Jesus" in one word group with "Jesus" in a different word group: e.g. Acts 19:13 plus some word groups span verse numbers: e.g. Acts 1:1-2, 1 Timothy 2:5-6, 2 Timothy 1:8-10, 2 Timothy 1:9-10, Titus 1:1-3, Hebrews 3:1-2, Hebrews 10:19-20, and 1 Peter 1:1-2 (noticed 2 Timothy 1:8-10 has two occurrences of "Jesus" in different word groups so matching skip levels finds "Jesus" a couple times).
Keep Smiling [:)]
0 -
Copy this selection and paste into Notepad++, a free text editor that understands Regular Expressions.
An alternative to Notepad++ is using Visual Basic for Applications (VBA) to expose Excel's regular expression support => http://www.dailydoseofexcel.com/archives/2005/08/13/pattern-matching/
Edit: VBA has InStrRev() so could search for last blank in "preceding context" that could return numeric position of last blank within text string (or 0 for not found).
A technical article about Office 2003 includes regular expression examples => http://msdn.microsoft.com/en-us/library/aa159903%28v=office.11%29.aspx
Word 2010 find and replace has wildcard (regular expression) option. Caveat: Word 2010 implementation has practical limits for regular expression matching since encountered some failures (expression too long) while formatting a personal book Bible for Logos 4 => American Standard Version 1901 - Personal Bible without Chapter and Verse #'s
Keep Smiling [:)]
0 -
-
Just a quick check and noticed that this search doesn't return either Rom. 1:1 or 1:4. My 'complicated' search method above returned 862 hits and yours shows 827 so there's not many that are being missed.
Personally living and learning Romans 1:1-7 is one Greek sentence, which has one word group that spans Romans 1:1-6 that contains the lemma κύριος (Lord)
Observation: Romans 1:4 has Jesus Christ our Lord, which is a variation of "Lord Jesus" from genitive use of the Lord (of us = our) modifying Jesus and Christ.
Modified Syntax Search to find Acts 19:13 and Romans 1:1 (also learned Logos 4.5b on Mac lacks not symbol for visual display along with duplicating syntax search since was open and modified in two Logos 4.5b installations at the same time):
Keep Smiling [:)]
0 -
Syntax search can find "the life" and "the life the eternal" separately.
I am aware that syntax searches can do this type of search in Greek or Hebrew. But there are times I want to do this in English. Even for Greek and Hebrew, syntax searches are also time consuming to set up and it is easy to make a mistake without even knowing it.
0 -
Syntax search can find "the life" and "the life the eternal" separately.
I am aware that syntax searches can do this type of search in Greek or Hebrew. But there are times I want to do this in English. Even for Greek and Hebrew, syntax searches are also time consuming to set up and it is easy to make a mistake without even knowing it.
Yes this may be true, but it gives KS4J something to do during the day…..[:O]
DISCLAIMER: What you do on YOUR computer is your doing.
0 -
Syntax search can find "the life" and "the life the eternal" separately.
I am aware that syntax searches can do this type of search in Greek or Hebrew. But there are times I want to do this in English. Even for Greek and Hebrew, syntax searches are also time consuming to set up and it is easy to make a mistake without even knowing it.
Concur syntax search can be time consuming to set up; personally had several attempts that found nothing (until changed vertical arrangement of lemma's). Also appreciate easy to make a mistake. Likewise learning that "is not present" has some nuances for syntax searching.
Thankful for many friendly forum discussions about Logos Bible Software: have learned a lot plus have a lot to learn (personally amazed at amount of learning this year).
Keep Smiling [:)]
0 -
Great discussion and input going on here in the area of
“searching”. Obviously we all want and need accurate results from our
“searches” whether for ministry purposes or personal study. It’s my
understanding the “surface text” search should not consider any underlying
Greek or morphological tagging associated with the text.So I took the time to try and clarify these search results
because they occur in adjacent verses and can be easily viewed in one layout.Searched for: life ANDNOT “the life”
Searched only “1st John”, used 8 bibles for the
search, some with reverse interlinear and some without. All interlinear panes turned
off, all visual filters turned off and turned on “Bible text only” for clarity
within the individual bibles. Placed all
in a simple layout for easy viewing of 1John 1:1-2. Notice the shading denoting
the hits scored in these first 2 verses, all scoring a hit for “life” at the
end of verse one but only NRSV, NLT, ISV and HCSB scoring hits in verse 2.I was hoping someone from Logos would have chimed in by now because
I think our sincere approach has uncovered a slight problem in the way the
software is handling “surface text” searches.Does anyone see something I’m over looking in setting up
this search or some other reason as to why it’s not returning accurate results?Dell Lap Top Win 10_Home, Logos 7,
Samsung gs7 phone
0 -
I was hoping someone from Logos would have chimed in by now because
I think our sincere approach has uncovered a slight problem in the way the
software is handling “surface text” searches.Does anyone see something I’m over looking in setting up
this search or some other reason as to why it’s not returning accurate results?I think your searches are returning accurate results. 1 John 1:2 isn't returned in some of these hits because the translations have "the life" in this verse. The way the search is set up, it tells the search engine to exclude any verse which has "the life." Those versions which show a hit for 1 John 1:2, translate this phrase differently, such as "this life". These searches aren't using anything but the surface text.
πάντα εἰς δόξαν θεοῦ ποιεῖτε
0 -
Ah I see Gary, Thank you,,
Dell Lap Top Win 10_Home, Logos 7,
Samsung gs7 phone
0 -
also learned Logos 4.5b on Mac lacks not symbol for visual display
This issue has been resolved in a future update. Thank you.
0 -
also learned Logos 4.5b on Mac lacks not symbol for visual display
This issue has been resolved in a future update. Thank you.
Concur Logos 4.5c Release Candidate 1 includes this fix.
Keep Smiling [:)]
0 -
I'm trying to find instances of "gradual" and "liturgy" and not "gradually"
In Google Chrome I believe the "and not 'gradually'" you can just use the minus sign
So the Logos search a) "-gradually AND (gradual NEAR liturgy)" still gave me hits with the word "gradually"
b) "(gradual NEAR liturgy) ANDNOT gradually" gave me no hits at all
0 -
-
I'm trying to find instances of "gradual" and "liturgy" and not "gradually"
Search directive [match all] OR [match exact] can be used while Match All Word Forms is checked
[match all] gradual NEAR liturgy
Keep Smiilng [:)]
0 -
Searched for: life ANDNOT “the life”
Years later have a Visual Filter for finding Anarthrous Nouns in Greek (using older Morph Search syntax)
(((@N BEFORE 1 WORD lemma:δέ) INTERSECTS (@N NOT AFTER 2 WORDS @D)) OR (@NASF NOT AFTER 4 WORDS @DASF) OR (@NDSF NOT AFTER 4 WORDS @DDSF) OR (@NGSF NOT AFTER 4 WORDS @DGSF) OR (@NNSF NOT AFTER 4 WORDS @DNSF) OR (@NVSF NOT AFTER 4 WORDS @DVSF) OR (@NASM NOT AFTER 4 WORDS @DASM) OR (@NDSM NOT AFTER 4 WORDS @DDSM) OR (@NGSM NOT AFTER 4 WORDS @DGSM) OR (@NNSM NOT AFTER 4 WORDS @DNSM) OR (@NVSM NOT AFTER 4 WORDS @DVSM) OR (@NASN NOT AFTER 4 WORDS @D[AN]SN) OR (@NDSN NOT AFTER 4 WORDS @DDSN) OR (@NGSN NOT AFTER 4 WORDS @DGSN) OR (@NNSN NOT AFTER 4 WORDS @D[AN]SN) OR (@NVSN NOT AFTER 4 WORDS @DVSN) OR (@NAPF NOT AFTER 4 WORDS @DAPF) OR (@NDPF NOT AFTER 4 WORDS @DDPF) OR (@NGPF NOT AFTER 4 WORDS @DGPF) OR (@NNPF NOT AFTER 4 WORDS @DNPF) OR (@NVPF NOT AFTER 4 WORDS @DVPF) OR (@NAPM NOT AFTER 4 WORDS @DAPM) OR (@NDPM NOT AFTER 4 WORDS @DDPM) OR (@NGPM NOT AFTER 4 WORDS @DGPM) OR (@NNPM NOT AFTER 4 WORDS @DNPM) OR (@NVPM NOT AFTER 4 WORDS @DVPM) OR (@NAPN NOT AFTER 4 WORDS @D[AN]PN) OR (@NDPN NOT AFTER 4 WORDS @DDPN) OR (@NGPN NOT AFTER 4 WORDS @DGPN) OR (@NNPN NOT AFTER 4 WORDS @D[AN]PN) OR (@NVPN NOT AFTER 4 WORDS @DVPN)) NOT INTERSECTS {Section <GramCon GSharp>}
Reverse Interlinear Visual Filter for finding Anarthrous Nouns (using older Morph Search syntax)
((@N AFTER 1 WORD lemma:δέ) OR (@NASF NOT AFTER 3 WORDS @DASF) OR (@NDSF NOT AFTER 3 WORDS @DDSF) OR (@NGSF NOT AFTER 3 WORDS @DGSF) OR (@NNSF NOT AFTER 3 WORDS @DNSF) OR (@NVSF NOT AFTER 3 WORDS @DVSF) OR (@NASM NOT AFTER 3 WORDS @DASM) OR (@NDSM NOT AFTER 3 WORDS @DDSM) OR (@NGSM NOT AFTER 3 WORDS @DGSM) OR (@NNSM NOT AFTER 3 WORDS @DNSM) OR (@NVSM NOT AFTER 3 WORDS @DVSM) OR (@NASN NOT AFTER 3 WORDS @D[AN]SN) OR (@NDSN NOT AFTER 3 WORDS @DDSN) OR (@NGSN NOT AFTER 3 WORDS @DGSN) OR (@NNSN NOT AFTER 3 WORDS @D[AN]SN) OR (@NVSN NOT AFTER 3 WORDS @DVSN) OR (@NAPF NOT AFTER 3 WORDS @DAPF) OR (@NDPF NOT AFTER 3 WORDS @DDPF) OR (@NGPF NOT AFTER 3 WORDS @DGPF) OR (@NNPF NOT AFTER 3 WORDS @DNPF) OR (@NVPF NOT AFTER 3 WORDS @DVPF) OR (@NAPM NOT AFTER 3 WORDS @DAPM) OR (@NDPM NOT AFTER 3 WORDS @DDPM) OR (@NGPM NOT AFTER 3 WORDS @DGPM) OR (@NNPM NOT AFTER 3 WORDS @DNPM) OR (@NVPM NOT AFTER 3 WORDS @DVPM) OR (@NAPN NOT AFTER 3 WORDS @D[AN]PN) OR (@NDPN NOT AFTER 3 WORDS @DDPN) OR (@NGPN NOT AFTER 3 WORDS @DGPN) OR (@NNPN NOT AFTER 3 WORDS @D[AN]PN) OR (@NVPN NOT AFTER 3 WORDS @DVPN)) INTERSECTS (@N NOT INTERSECTS @D) NOT INTERSECTS {Section <GramCon GSharp>}
Caveat: Definite Article alignment with Noun is missing in NLT so Life in 1 John 1:1-2 shows Anarthrous in NLT (incorrect)
Screen shot has visual filters to underline definite articles, prepositions, anarthrous nouns
Keep Smiling [:)]
0 -
Search directive [match all] OR [match exact] can be used while Match All Word Forms is checked
And if he doesn't want to lose the matching forms for the word "liturgy", he can try: [match exact] gradual NEAR liturgy,liturgies,liturgical
“The trouble is that everyone talks about reforming others and no one thinks about reforming himself.” St. Peter of Alcántara
0