Thread: Bible program - search functionality

  1. #1
    Chad Johnson
    Join Date
    May 2004
    Posts
    154

    Bible program - search functionality

    Alright, so you guys know I'm making a Bible program. Thus far, it's at version 1.01, and it's at http://sourceforge.net/projects/aletheia.

    Pretty soon I'm going to start adding some advanced search features. I think I have two options.

    1. I can make it work similarly to Google where you use + to include words, - to exclude words, and quotations to search for exact phrases. I would also allow for wildcard searches.

      The only problem with this method is that I'm not sure how I would allow for the user to specify words to leave out. I would like to keep the search text in one single text box.
    2. Do it all with a GUI, using radio buttons, with the following options:


    1. Exact phrase
    2. Require all words
    3. Any words

    In both, I might include regular expression searching.

    Do you guys think this much search capability is even necessary for searching the Bible? Which option do you think would be best for users?

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Do you guys think this much search capability is even necessary for searching the Bible?
    That sounds funny to think about.....ctrl-F'ing the bible.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    32
    I like the GUI approach - its more user friendly.

    By the way, how do you plan to enter the entire text of the Bible? Do you just download it somewhere or do you have it from another Bible program or what?

  4. #4
    Chad Johnson
    Join Date
    May 2004
    Posts
    154
    Well I was thinking I'd just do like Martin Luther did, except with a computer, and type it all in myself. It should only take a year or so...haha, no, I found a couple public domain text files that have the verses line by line.

    After finding the text, I just converted it to my own indexed format. Loads real fast. Everythings extremely fast - a lot more so than I imagined it would be.

    So what do you people think I should do about the advanced search functionality?

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by ChadJohnson
    Do you guys think this much search capability is even necessary for searching the Bible? Which option do you think would be best for users?
    Absolutely!
    The more search functions the better. I suggest a K-approximate search function to find misspellings.
    The Bible names aren't the same in different countries, so misspellings will probably be common. For example Peter=Petrus, Luke=Lukas, Mary=Maria etc.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    > Do you guys think this much search capability is even necessary for searching the Bible? Which option do you think would be best for users?

    Like Sang said, 100% necessary. This is a long book and people are going to want to search for specific phrases in it. You should have as many search options as possible.

  7. #7
    I like code Rouss's Avatar
    Join Date
    Apr 2004
    Posts
    131
    I think some bibles have a section in the back with categories like 'marriage', 'death', '<everyday thing>', and it has a list of book/chapter/verse that relates to the topic. Something you might want to look into.

  8. #8
    Chad Johnson
    Join Date
    May 2004
    Posts
    154
    Yea I was thinking, if I put some kind of index or a table of contents, I would probably only need to have one and it would work for every version of the Bible.

  9. #9
    Chad Johnson
    Join Date
    May 2004
    Posts
    154
    I can't find any kind of outline or table of contents for the Bible online. I think I'll get sued if I parse it off a site for any non-public domain versions, so I'm NOT doing that.

    Does anyone know of anything like this that is public domain? Anyone know of any opensource Bible programs that have these things incorporated in them?

    It has to be public domain and without copyright though...

    By the way, can I possibly get sued if I parse text/commentaries/etc. off a web site that is public domain? I mean it's public domain and it's not like it's actually their property...
    Last edited by ChadJohnson; 04-15-2005 at 11:36 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing a Unix Search Program, some questions
    By Acolyte in forum C Programming
    Replies: 3
    Last Post: 09-23-2008, 12:53 AM
  2. An interesting challenge --> A word search program
    By desipunjabi in forum C Programming
    Replies: 5
    Last Post: 11-12-2005, 03:30 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Simple search program
    By colinuk in forum C Programming
    Replies: 6
    Last Post: 12-18-2004, 01:58 AM
  5. search array program
    By z.tron in forum C++ Programming
    Replies: 3
    Last Post: 11-15-2002, 07:33 AM