words following or preceding a phrase

Discussion in 'General' started by wsbones, Apr 16, 2014.

  1. wsbones

    wsbones Beta Tester

    I had previously written a python script to find these words, but a regex search can do this right in SS. I was interested in the word preceding "of life" like tree of life or word of life, etc.

    Here's the regex search expresssion and results. Regex searches are done using the F2 key and picking the Regex Search tab.

    Here's what the input looks like.
    upload_2014-4-16_14-38-39.png

    RESULTS
    Regular Expression search: \W\w+\Wof life
    Search parameters: Remove Pre- and Post-Scripts
    Search scope: Genesis - Revelation
    Total matching verses: 70
    Total Match Count: 70
    Matching Strings:

    String Match Count
    book of life 8
    bread of life 2
    breath of life 4
    bundle of life 1
    crown of life 2
    end of life 1
    even of life 1
    fountain of life 3
    grace of life 1
    him of life 1
    issues of life 1
    justification of life 1
    light of life 1
    manner of life 2
    newness of life 1
    path of life 2
    paths of life 1
    pride of life 1
    prince of life 1
    promise of life 1
    reproof of life 1
    resurrection of life 1
    savour of life 1
    spirit of life 2
    statutes of life 1
    sure of life 1
    time of life 4
    tree of life 10
    up of life 1
    water of life 3
    way of life 4
    ways of life 1
    well of life 1
    wellspring of life 1
    word of life 2
     
  2. Ruthlyn

    Ruthlyn Beta Tester

    Very interesting Bill... going to try it out myself. :)
     
    marty likes this.
  3. marty

    marty Beta Tester

    Me, too! Thanks, Bill!
     
    Ruthlyn likes this.
  4. wsbones

    wsbones Beta Tester

    If you put a colon before the numbers, you can paste the result into www.wordle.net, advanced option, the top input box, and produce a word cloud of phrases. You need to have JAVA enabled in your browser for that site. I wouldn't enable it globally however for security reasons. I'm don't mean JAVASCRIPT but rather JAVA programming language (available here https://www.java.com/en/download/)

    Maybe it would be an interesting SS new feature to produce "phrase clouds" for searches that return a table of phrase results.

    book of life:8
    bread of life:2
    breath of life:4
    ... etc.

    produces this:
    upload_2014-4-16_21-22-15.png
     
    Gord, john.a, TerriP and 1 other person like this.
  5. marty

    marty Beta Tester

    I wouldn't have thought to do a search on what the Bible says about x "of life." What an interesting study! Thanks, Bill! And for the clue about RegEx searches.
     
    john.a and Ruthlyn like this.
  6. Brandon Staggs

    Brandon Staggs Administrator Staff Member

    Good stuff!
     
  7. Johnny NL

    Johnny NL Active Member

    indeed !
     
  8. ishaknatan

    ishaknatan Beta Tester

    wow, no end of new learning . . .
     
    Brandon Staggs likes this.
  9. wsbones

    wsbones Beta Tester

    Here's an interesting regex search for the word following "and God".

    Search Details
    Regular Expression search: \band god\W\w+\W
    Search parameters: Remove Pre- and Post-Scripts
    Search scope: Genesis - Revelation
    Total matching verses: 118
    Total Match Count: 128
    Matching Strings:

    String Match Count
    and god almighty 2
    and god also, 1
    and god answered 1
    and god appeared 1
    and god blessed 4
    and god called 3
    and god came 3
    and god command 1
    and god created 1
    and god delivered 1
    and god did 2
    and god divided 1
    and god doeth 1
    and god feedeth 1
    and god gave 3
    and god granted 1
    and god had 2
    and god hath 6
    and god healed 1
    and god heard 2
    and god hearkened 3
    and god helped 1
    and god himself 1
    and god in 1
    and god is 4
    and god looked 2
    and god made 5
    and god met 1
    and god moved 1
    and god of 1
    and god opened 1
    and god remembered 3
    and god repented 1
    and god requireth 1
    and god said 18
    and god said, 12
    and god saw 9
    and god sent 2
    and god set 1
    and god shall 3
    and god smote 1
    and god spake 6
    and god stirred 1
    and god talked 1
    and god that 1
    and god the 1
    and god was 2
    and god went 2
    and god will 2
    and god wrought 1
    and god's 1

    It would be a nice SS feature to link the searches in the search result table.
     
    Last edited: May 3, 2014
    terrpn, marty, Ruthlyn and 1 other person like this.
  10. terrpn

    terrpn Active Member

    nice...............:)
     
  11. wsbones

    wsbones Beta Tester

    For this type of search (pattern matching and wildcard) where multiple types of matches occur, it would be useful to be able to send the matching strings to a delimited file for sorting or filtering or else have the capability within SwordSearcher.
     

Share This Page