Doing a search for grammatical forms

Here you can discuss all things Ancient Greek. Use this board to ask questions about grammar, discuss learning strategies, get help with a difficult passage of Greek, and more.
Post Reply
Karagialis
Textkit Neophyte
Posts: 12
Joined: Wed Jul 25, 2018 9:55 pm

Doing a search for grammatical forms

Post by Karagialis » Tue Dec 04, 2018 11:58 pm

On Perseus it is easy to search for words and find passages, but I want to find examples for grammatical forms. For example I would like to see usages of future participles, but I couldn't find a way to collect examples other than searching every verb one by one. Does anyone know an easier way to do it?

anphph
Textkit Enthusiast
Posts: 577
Joined: Fri Nov 09, 2007 1:35 am

Re: Doing a search for grammatical forms

Post by anphph » Wed Dec 05, 2018 12:19 am

I don't imagine how there could plausibly be one, but computers will keep finding ways of surprising us.

truks
Textkit Neophyte
Posts: 54
Joined: Fri Apr 19, 2013 12:01 pm

Re: Doing a search for grammatical forms

Post by truks » Wed Dec 05, 2018 8:34 am

You can do this in Diogenes by entering regular expressions and searching on the PHI corpus. There's no separate search mode for regex. Just enter the expression as you would a normal word, e.g. for future participles:

tur[aeiou] (with no spaces either side)

https://community.dur.ac.uk/p.j.heslin/ ... /index.php

User avatar
opoudjis
Textkit Member
Posts: 113
Joined: Tue Oct 03, 2017 2:54 am

Re: Doing a search for grammatical forms

Post by opoudjis » Fri Dec 07, 2018 12:30 am

The TLG (i.e. me) has implemented grammatical search, and it's not actually that big a deal, once you have lemmatised your corpus. Of course, disambiguation is going to be a big problem, and I was not comfortable with letting computers do massive disambiguation automatically. Can't show you a sample, since I no longer have access to it, but you can indeed do things like search for future participles (and be prepared for trouble if you're searching for a dative plural, which will be ambiguous with an indicative 3pl.)

User avatar
jeidsath
Administrator
Posts: 3190
Joined: Mon Dec 30, 2013 2:42 pm
Location: Γαλεήπολις, Οὐισκόνσιν

Re: Doing a search for grammatical forms

Post by jeidsath » Fri Dec 07, 2018 1:10 am

I was going to suggest that you could do this through the TLG's wildcard search, if you were willing to type in the form-endings.

Given that all of the words seem to be tagged in TLG (that's not real-time, I expect) there should be a way to search based on grammatical form, but I'm not aware of it being open to the enduser through an interface.

@opoudjis I often think that there are a lot of interesting things that could be done with database access to the TLG. Isn't there any sort of developer program for that?
Joel Eidsath -- jeidsath@gmail.com

User avatar
opoudjis
Textkit Member
Posts: 113
Joined: Tue Oct 03, 2017 2:54 am

Re: Doing a search for grammatical forms

Post by opoudjis » Tue Dec 11, 2018 10:22 pm

jeidsath wrote:
Fri Dec 07, 2018 1:10 am
I was going to suggest that you could do this through the TLG's wildcard search, if you were willing to type in the form-endings.

Given that all of the words seem to be tagged in TLG (that's not real-time, I expect) there should be a way to search based on grammatical form, but I'm not aware of it being open to the enduser through an interface.

@opoudjis I often think that there are a lot of interesting things that could be done with database access to the TLG. Isn't there any sort of developer program for that?
I have indeed implemented search based on grammatical features (several years ago), based on offline lemmatisation, and also benefitting from some contextual disambiguation. I'm not in any position to confirm whether it has gone live (once I stopped working there, I lost even demo access), but if it has, it is an option alongside text search and lemma search.

The TLG is as closed source as closed source can be, and quite paranoid about any external access. An API is simply not going to happen under present management; ditto bringing external devs in.

User avatar
jeidsath
Administrator
Posts: 3190
Joined: Mon Dec 30, 2013 2:42 pm
Location: Γαλεήπολις, Οὐισκόνσιν

Re: Doing a search for grammatical forms

Post by jeidsath » Tue Dec 11, 2018 11:03 pm

opoudjis wrote:
Tue Dec 11, 2018 10:22 pm
The TLG is as closed source as closed source can be, and quite paranoid about any external access. An API is simply not going to happen under present management; ditto bringing external devs in.
That's really unfortunate. Aren't they part of UC Irvine? Or are they private somehow?

Regardless, I suspect that they have a very fragile monopoly, given how much better OCR is going to get over the next few years.
Joel Eidsath -- jeidsath@gmail.com

User avatar
opoudjis
Textkit Member
Posts: 113
Joined: Tue Oct 03, 2017 2:54 am

Re: Doing a search for grammatical forms

Post by opoudjis » Wed Dec 19, 2018 6:12 am

Oh, Greg Crane is actively working to undermine that monopoly, and he's probably going to get there. But that's classical texts; the Byzantine and Early Modern texts are not in his scope.

Post Reply