Morph Search

Share your favorite tips, workarounds and shortcuts for theWord
UBC4ME
Posts: 178
Joined: Mon Nov 02, 2009 2:43 am
Location: Greenville, South Carolina

Morph Search

Post by UBC4ME »

Is there a way to do a morph search on a sequence of morph tags? For example I tried m/T-NSM V-PAP-NSM and the search did not return anything, though I know this construct exists in the text. I tried using AND, OR, surround the morph tags with " ". By the way, the example is not proximity but is in sequence. As always thank you all for your insight and assistance.
Dave
Gods gifts comes wrapped many different ways.
csterg
Site Admin
Posts: 8627
Joined: Tue Aug 29, 2006 3:09 pm
Location: Corfu, Greece
Contact:

Re: Morph Search

Post by csterg »

Unfortunately no. The boolean logic has no operator of 'sequence'.
Costas
DarrelW
Posts: 1261
Joined: Fri Sep 11, 2009 1:04 am
Location: Klamath Falls, Oregon
Contact:

Re: Morph Search

Post by DarrelW »

So out of curiosity, how would one perform this type of search?

Darrel
UBC4ME
Posts: 178
Joined: Mon Nov 02, 2009 2:43 am
Location: Greenville, South Carolina

Re: Morph Search

Post by UBC4ME »

Thanks Costa. It would be a powerful tool to be able to do this level of search in the Greek text though.
Dave
Gods gifts comes wrapped many different ways.
DrMiKEY
Posts: 104
Joined: Mon May 05, 2008 4:03 pm
Location: Slovakia
Contact:

Re: Morph Search

Post by DrMiKEY »

I found one way but it is extremely not feasible to do it that way.

1. Opened the file in Notepad2
2. In the find tab I checked Regular Expression search
3. Then I searched for the following:

Code: Select all

<WTT-NSM> .....<WG\d\d\d\d><WTV-PAP-NSM>
where "." is any character and "\d" is any number.
4. Then you know what line this is on of the file

Like I said, this is not very helpful for everyday use, and I think it might be hard to implement.

(NB: this search finds a 5 letter word with a 4 digit Greek Strong and a morph V-PAP-NSM that is preceded by a word with morph T-NSM)
csterg
Site Admin
Posts: 8627
Joined: Tue Aug 29, 2006 3:09 pm
Location: Corfu, Greece
Contact:

Re: Morph Search

Post by csterg »

It's not very simple at the moment to add this.
Costas
UBC4ME
Posts: 178
Joined: Mon Nov 02, 2009 2:43 am
Location: Greenville, South Carolina

Re: Morph Search

Post by UBC4ME »

Costas, I certainly understand the difficulty in adding this type of functionality. At the moment I can't think of another "free" Bible study program that has the ability to perform this level of search. I don't know how many users would actually use this, I do extensive work in the original languages and I would use it often, the way I do it now is very convoluted. Perhaps when you are not doing anything you could throw this together? Brother I am only kidding I am well aware of the burden you carry. But if you could keep this on your mind, perhaps sometime in the future, Lord willing, you could add this type of functionality to the morph search. Again, thank you for all have done and continue to do.
Dave
Gods gifts comes wrapped many different ways.
csterg
Site Admin
Posts: 8627
Joined: Tue Aug 29, 2006 3:09 pm
Location: Corfu, Greece
Contact:

Re: Morph Search

Post by csterg »

To be honest i already took a look, trying to work out the nearw operator to work for morph; yet it's not simple at all as it requires major updates. Maybe a directional 'AND' operator would do,
Costas
UBC4ME
Posts: 178
Joined: Mon Nov 02, 2009 2:43 am
Location: Greenville, South Carolina

Re: Morph Search

Post by UBC4ME »

That is actually what i was thinking would work well in the first place.
Dave
Gods gifts comes wrapped many different ways.
UBC4ME
Posts: 178
Joined: Mon Nov 02, 2009 2:43 am
Location: Greenville, South Carolina

Re: Morph Search

Post by UBC4ME »

csterg wrote:To be honest i already took a look, trying to work out the nearw operator to work for morph; yet it's not simple at all as it requires major updates. Maybe a directional 'AND' operator would do,
Costas
Costas,

Has there been any progress on this?
Dave
Gods gifts comes wrapped many different ways.
csterg
Site Admin
Posts: 8627
Joined: Tue Aug 29, 2006 3:09 pm
Location: Corfu, Greece
Contact:

Re: Morph Search

Post by csterg »

No sorry.
UBC4ME
Posts: 178
Joined: Mon Nov 02, 2009 2:43 am
Location: Greenville, South Carolina

Re: Morph Search

Post by UBC4ME »

Not a problem just thought I would check. Thank you for all your hard work Costas
Dave
Gods gifts comes wrapped many different ways.
csterg
Site Admin
Posts: 8627
Joined: Tue Aug 29, 2006 3:09 pm
Location: Corfu, Greece
Contact:

Re: Morph Search

Post by csterg »

UBC4ME wrote:Not a problem just thought I would check. Thank you for all your hard work Costas
Thanks for your kind words and encourgament
RubioTerra
Posts: 732
Joined: Wed Sep 23, 2009 5:13 pm
Location: Brasília, Brazil

Re: Morph Search

Post by RubioTerra »

Well, this specific search can be accomplished using regular expressions. Try searching for:

Code: Select all

(^|\s)ο\s+\S*ων
It isn't perfect, but gets the job done. :)

By the way, Costas, \b doesn't seem to work here, maybe because of the tags -- <wt> before and <W[GT] after each word. Is this supposed to be so?
Rúbio R. C. Terra
Brasília/DF - Brasil
User avatar
JG
Posts: 4604
Joined: Wed Jun 04, 2008 8:34 pm

Re: Morph Search

Post by JG »

I think \b is only supported in ascii files for PCRE regex that theWord uses
Jon
the
Word 6 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet
Post Reply