Irish/Using Nua-Chorpas na hÉireann

From Celtic Languages
Jump to navigationJump to search

The New Corpus for Ireland or Nua-Chorpas na hÉireann (or the Foclóir corpus) is a very useful tool for checking how some things are phrased in Irish and which expressions are used by native speakers and which ones are not. Unfortunately the corpus’s help page is not accessible and the UI isn’t very user-friendly. One can find some documentation for the software used there, but it’s not corpas-specific and thus not very helpful when working with this particular corpus of Irish.

This page isn’t meant to be a comprehensive documentation of the corpus, but at least a list of hints that would make your work with the corpus a bit more efficient. For more comprehensive documentation, see external links below.

First steps

To use the corpus, you first have to create an account using the registration form. Registration is free, but you will have to wait until your account is accepted before you’ll be able to log in and use the corpus.

Old and new interface

When you log in, you’ll see the old Sketch Engine web interface. You can use it but it is also possible to access the new interface by logging into focloir.sketchengine.eu instead. The new interface is generally much more user-friendly (and compatible with the official Sketch Engine documentation) but beware: some features don’t work with it (for example word sketches work in the old interfaces, but they don’t in the new one).

You can follow this guide in the old interface, unless it refers explicitly to the new one.

Simple querying

When you log into the corpus, you’ll see the ⟨Home⟩ (⟨Leathanach Tosaigh⟩) screen with an input form to perform a simple search. As the prompt says, you can type words or phrases in there. If you type a lemma form of a word (ie. the base form that you’d find in a dictionary), it will search for any occurrence of that word in any form in the corpus. And it will treat every word in a phrase this way.

This means that if you type bí madra ag (‘to be, dog, at’), you’ll see results such as:

  • bhí madra agamsa ‘I had a dog’,
  • tá madraí aige siúd ‘that one has dogs’, etc.

You’ll also see the number of all results at the top (Hits: 31 or Amas: 31).

If a word you type in is not a lemma form, only sentences that match this form exactly will be found. So if you type madraí ag (‘to be, dogs, at’), you’ll get results like:

  • Beidh madraí ag Waterloo ‘there will be dogs at Waterloo’,
  • tá madraí aige siúd ‘that one has dogs’,

but no instances of singular madra (and you’ll see that the number of results fell down to 8).

The default search is case-insensitive, you can type both madraí or MADRAÍ and you’ll get the same set of results.

Note! The way words in the corpus are tagged with their lemma form and part-of-speech is not perfect. You’ll have to write the exact form you’ll looking for sometimes – often you won’t find non-standard historical and dialectal forms when using the lemma form. For example the dative plural forms like Gaelaibh, fearaibh, cosaibh (and their lenited counterparts) are interpreted by the corpus as their own singular lemmata.

Wildcards (new interface only)

If you use the new interface, you can perform simple searches in the ⟨Concordance⟩ tab with ⟨Simple⟩ query type chosen. You can use wildcard characters:

  • * standing for any number of characters,
  • ? for any single character in your queries,
  • | meaning or, allowing you to list multiple words or phrases,
  • and some more.

Thus you can for example type bí * ag and get all occurences of the verb and its forms (tá, raibh, beidh, etc.) followed by any word, followed by any form of the preposition ag, thus you’ll get a result list containing:

  • tá feidhm ag na fóralach cosúlacha…,
  • … nach raibh feidhm aige…,
  • Ceangaltais a bheidh déanta ag an gComhphobal, etc.

You can also type just a part of the word, eg. feoil* will find occurrences of every word starting with feoil and whose lemma starts with feoil, those the list will include: feoil, feola, feoilséantóir, mhuicfheoil (it’s lemmatized as feoil), feoilmhian, etc. If you type Ga?l you’ll get results for both Gael and Gall (and also gaol and gail).

You can use the | to list multiple words or phrases that are supposed to match in your query, eg. if you type snámh|léamh you’ll find all instances of the verbal nouns snámh ‘swimming’ and léamh ‘reading’, if you type bí snámh ag|bí léamh ag you’ll find all instances of the ⟨verbal noun⟩ agam ‘I can ⟨verb⟩’ construction with the verbal nouns for ‘swim’ and ‘read’, regardless of tense or grammatical person.

Filtering the results

If you want to filter the results using criteria like texts written only by native speakers or only Munster Irish, you need to enter the Concordance screen. To do that you need to click ⟨>> More⟩ (⟨>> Tuilleadh⟩) under the results list, then in the menu on the left click ⟨Filter⟩ (⟨Scagaire⟩), and that will bring you to a screen where you can select your filtering criteria and confirm them by clicking ⟨Filter Concordance⟩ (⟨Déan an Comhchordacht a Scagadh⟩). This will take you to the concordance results screen with the results filtered.

CQL

If you require more power – you want to find utterances matching complex patterns – you can always reach for CQL by entering the ⟨Concordance⟩ (⟨Comhchordacht⟩) tab and switching the query type to ⟨CQL⟩.

The Corpus Query Language (CQL) allows you to make complex regex-like queries, including things like looking for phrases containing specific parts of speech or inflectional forms – that’s possible because every word in the corpus is tagged with information about its part-of-speech and inflectional form. Using CQL is more complex than simple searching for words, but it enables you to be much more flexible in your searches.

Every single token (word or punctuation mark) in the Foclóir corpus has multiple attributes with text values associated with it. CQL allows you to query values of those attributes. The available attributes are:

  • word – the word itself, verbatim as it appears in the text,
  • lc (word (lowercase)) – the word but with all uppercase characters changed to lowercase,
  • lemma – the lemma, ie. the base dictionary form of the word,
  • lemma_lc (lemma (lowercase)) – the lemma with all characters changed to lowercase,
  • tag – the part-of-speech tag with inflectional information for the word,
  • lempos – lemma and a single character representing the part-of-speech, separated with a dash.

For example the sentence-initial verb ‘is’ will have its word value equal to , lc=, lemma=, lemma_lc=, tag=Vmip, lempos=bí-v. Some details of the tag format will be explained later. Most words will have their lemma and lemma_lc values equal, but some words that are typically written with initial capital will have those two different (eg. Éireannach ‘an Irishman’ has lemma=Éireannach and lemma_lc=éireannach).

The general most basic element of CQL queries is a pair of square brackets matching a token: [] – this means ‘any word or punctuation mark’. You can add a condition in a form attribute = "value-regex" inside the bracket to limit what the query will match.

For example the query [lemma="bí"] will match every occurrence of any form of the verb (the results will be the same as when typing in the simple search). The query [word="bí"] will find all instance of all-lowercase (and only , not any other form) in the corpus – this is impossible to get using the simple query.

When you type attribute = "value" the value is treated as a regex, so you can for example write [word = "dra((ío)|(oidhea))cht"] to find all occurrences of both – the old (draoidheacht) and new (draíocht) – spellings of the word draíocht ‘magic, witchcraft, druidism’. You can also type [word = ".*nnach[td]"] to find all the words ending in -nnacht or -nnachd.

Thus, to find all instances of the ⟨verbal noun⟩ agam ‘I can ⟨verb⟩’ construction with any form of the verb , for any grammatical person, with the verbal nouns snámh ‘swim’ and léamh ‘read’ (including old spelling léigheamh), you can write:

[lemma = "bí"] [lc = "snámh|lé(ighe)?amh"] [lemma = "ag"]

(which at the time of writing doesn’t find any instance with the old spelling, only snámh and léamh).

You can omit the brackets and attribute name for the default attribute, so for example if you choose ⟨Default attribute⟩ (⟨Aitreabúid réamhshocraithe⟩) in your search to be ⟨word (lowercase)⟩, you can shorten the above to:

[lemma = "bí"] "snámh|lé(ighe)?amh" [lemma = "ag"]

If you want to search for a specific string without treating it as a regex, you can use double equals sign ==, for example [word == "."] will find all the instances of the period punctuation mark.

You can combine multiple conditions and perform Boolean logic on them using the following operators: & (and), | (or), ! (not), and group them with parentheses ( ). So, given the information that adjectives in the corpus have tags beginning with the letter A, you can find all correctly tagged sequences of two consecutive adjectives with lenition marked in writing with:

[word = "[cptgbdms]h.*" & tag = "A.*"] [word = "[cptgbdms]h.*" & tag = "A.*"]

(or using the lempos attribute as [lempos = "[cptgbdms]h.*-j"] [lempos = "[cptgbdms]h.*-j"], don’t ask me why adjectives have -j there).

You can also a question mark ? after a token to mark it as optional, and braces with two numeric values: {x, y} to say that you want the given token query to match between x and y times.

For example to find most instances of the construction is maith/fearr liom ⟨verbal noun phrase⟩ ‘I like/prefer to ⟨infinitive phrase⟩’, regardless of person (liom, leat, leis an bhfear…) or whether the verbal noun has an object (arán a ithe ‘to eat bread’) or not (snámh ‘to swim’), you could write something like:

[tag = "W.*"] [lemma = "maith"] [lemma = "le"] ([tag = "[TD].*"]? [tag = "N.*"] [tag = "A.*"]{0,5} [tag = "D.*"]?)? ([tag = "Dp.*"] | ([tag = "[TD].*"]? [tag = "N.*"] [tag = "A.*"]{0,5} [tag = "D.*"]? [word = "a|do"]) | ([word = "mé|t(h)?ú|é|í|sinn|sibh|iad"] [word = "a|do"]))? [tag = "Nv.*"]

Let’s break this monstrosity down into parts:

  • [tag = "W.*"] – the copula, it has tags beginning in W,
  • [lemma = "maith"] – the adjective maith or any of its forms (lenited mhaith, comparative f(h)earr, etc.),
  • [lemma = "le"] – the preposition le or any of its forms (leis, liom, etc.),
  • ( … )? – optionally a group representing a noun phrase subject, containing:
  • [tag = "[TD].*"]? – either an article (an, na), tags beginning with T or a determiner (like possessive mo, a, etc.) – tags beginning in D,
  • [tag = "N.*"] – a noun,
  • [tag = "A.*"]{0, 5} – zero up to five adjectives,
  • [tag = "D.*"]? – an optional following determiner (like seo or sin),
  • ( … )? – optionally a group representing the direct object, containing:
  • … | … | … – either:
  • [tag = "Dp.*"] – a possessive pronoun (mo ‘my’, do ‘your’, a ‘his/her/their’, etc.),
  • or ( … ) – another noun phrase group:
  • [tag = "[TD].*"]? [tag = "N.*"] [tag = "A.*"]{0,5} [tag = "D.*"]? – article, noun, adjectives, determiner, like before,
  • [word = "a|do"] – the particle a (or its older form do) verbatim after the direct object,
  • or ([word = "mé|t(h)?ú|é|í|sinn|sibh|iad"] [word = "a|do"]) – a pronoun object followed by a or do,
  • [tag = "Nv.*"] – finally, the verbal noun.

This query still doesn’t catch everything (it doesn’t allow any genitive attributes in the noun phrases, for example) – but it shows the flexibility you get with CQL.

To learn more visit the official guide to Corpus Query Language linked below.

POS-tags

TODO

External documentation