﻿Norwegian translations of documents from Acquis Communautaire

*This file, together with the appendices, is available in the folder "doc" (MS Word format).*


1. Acquisition and permission of use
	
Since the early 1990s, the body of European acts and regulations known as Acquis Communautaire has been translated to Norwegian under the auspices of the Norwegian Ministry of Foreign Affairs (UD). The texts can be searched on Lovdata onlinei, but have not previously been available for download as a collection. 

In connection with META-NORDii tasks 3.3 (Aligning resources across languages) and 3.4 (Horizontal action on treebanking), prof. Koenraad De Smedt at UiB obtained access to Norwegian translations of Acquis Communautaire documents from the Norwegian EEA Secretariat, a part of the EEA/EFTA Section of UD. The EEA Secretariat has given UiB permission to incorporate these texts in the JRC-Acquis Multilingual Parallel Corpusiii. Permission was given in writing by Grete Borge, Assistant Director of the EEA Secretariat, in an e-mail to Koenraad De Smedt on March 8th, 2011 (Appendix I). In 2011, in agreement with the secretariat, the UiB-affiliated research company Uni Digital passed on the electronically available translations to De Smedt in the form of a zipped folder.  

One of the main objectives of the META-NORD project has been to establish an open linguistic infrastructure in the Baltic and Nordic countries to serve the needs of the industry and research communities. During its two-year project period, META-NORD has contributed to a pan-European digital resource exchange facility by identifying and collecting resources in the Baltic and Nordic countries and documenting, processing, linking and upgrading them to agreed standards and guidelines. This pan-European exchange facility, called META-SHARE, is mainly a metadata repository and not a resource depository, and while the META-NORD partners at UiB have put considerate efforts into making Norwegian language resources and tools available for language technology R&D, they have not been in a position to deposit them. Throughout the project period, META-NORD has worked in close collaboration with the National Library (NB) and Språkbankeniv.  

Språkbanken is “a national infra-structure initiative designed to ensure that language technology solutions based on the Norwegian language will be developed, and thereby prevent domain loss of Norwegian in technology-dependent areas”, and “a service to that part of the ICT-industry which works with the development of language-based ICT-solutions, to researchers within language technology and linguistics, and to public enterprises which develop electronic solutions for public services”.  Språkbanken thus offers a long-term solution for the deposit and exchange of digital language resources.
 
Researchers at Språkbanken have cleared rights for the Norwegian Acquis Communautaire collection for the purpose of making it available for download and eventually to integrate it in the European Parallel Corpus. In a letter dated October 19. 2012, UD permitted the transfer of these resources from UiB to the National Library of Norway, granting NB the right to include the Norwegian translations of Acquis Communautaire in the European parallel corpus and to make them available for use in linguistic and language technology research and development (Appendix III).



2. Description of the raw material 
	 
In the context of the terminology project The EEA secretariat's terminological databasev, 
Uni Digitalvi derived the bilingual termbase the EEA-EU-basevii from electronically available translations of the Acquis Communautaire. Within this project, more than 5.000 texts comprising about 17 M tokens (words) were made searchableviii, resulting in a database with more than 130.000 searchable terms. The EEA-EU base project terminated in 2002, and the work was taken over by the EEA Secretariat. 

It has been difficult to determine the exact number of translated documents. According to senior scientist Paul Meurer at Uni Digital they received approximately 5.500 documents from UD. An open document search in the EEA-EU-baseix yields a slightly different number. According to UD, it is difficult to give a precise estimate of the number of translations: 
”UD started making the legal documents available via the EEA-EU-base after the EEA agreement came into force in 1994. We thus cannot guarantee that all the legal acts have been transferred to Uni Digital, neither do UD have routines for verifying that the documents submitted to Uni Digital have actually been added to the database.” (Appendix II)
Due to this, UiB has not been able to ascertain to what extent the collection at hand is complete. However, based on an estimate derived from UD’s own archives counting 6.000 legal acts (Appendix II), UiB assumes to have access to a significant proportion of the actual translations. According to The EEA Secretariate, this should be verifiable by referring to the EEA supplement, which is where all official legal acts are publishedx.  The following numbers and descriptions are based on the material that UiB has acquired from Uni Digital.
The main folder contains almost 11.000 files, of which 1466 are Word files (.doc), 3934 are Word Perfect files (.wp and .wpd), and 5413 are plain text files (.txt). Most documents exist in either Word or Word Perfect format and in addition have a corresponding text file. There is also a subfolder containing 4003 .tok files, which are tagged versions of some of the documents, in which each word (token) has been dumped on a separate line and supplied with grammatical information such as lemma, word class, and morphosyntactic features.

The Norwegian translations have not been provided with any kind of mark-up. However, both text and Word files are structured in more or less the same way, with document id and an English header on top, use of tab to indicate headings, annexes etc., and they have annexes and footnotes at the bottom of the document. The Word documents have formatting such as tables and lists, while the text files may have residues of such formatting which is partly traceable (sequences of question marks etc.). The Word files also use text formatting such as bold, italic and footnote markers.

Part of the translations is written in Norwegian bokmål, while others are written in Norwegian nynorsk. The files have not been marked with the written norm in question, but an automatic language classification (section X) shows that 83% of the translations are in Norwegian Bokmål and 17% in Norwegian Nynorsk. 
The naming conventions for the Norwegian documents differ slightly from the JRC Acquis standard, which has a CELEXxi number as the unique identifier of each text. The CELEX is composed of a sector code, year, document type (regulation code), and document number. In the Acquis corpus, the CELEX number is integrated as an attribute value in the xml code. In the Norwegian documents, the identifier is given as the top element of the document, in the form NOR/301R2380.00T. The two first digits of the year are omitted, so that 301R2380 corresponds to 32001R2380 in all other languages. The truncated celex is also used to name the Norwegian files.


3. Description and alignment at document level 

META-NORD has implemented an automatic analysis of the Norwegian Acquis Communautaire collection on document level, aligning the Norwegian translations with the other European languages.  The number of unique documents in the collection has been identified, as well as the file formats in which each document is available. The CELEX number has been generated from the Norwegian filename, and each document is classified with respect to the language variety in which it is written.

The information is stored in table format. The table has been indexed and supplied with column headings, and is provided both as a .txt file and as an Excel document so that the table content may be viewed and sorted by its features (columns) and values (rows).

Description of the table 

Column 1: Index 
Each row in the table corresponds to a unique document/translation that have been given a unique numerical index. The number of rows corresponds to the number of documents; the table has 5435 rows.

Column 2: File name (without extension)
The document identifier is also used as file name (a truncated CELEX, as described in section 2 above). 

Column 3: Celex 
The Celex number has been automatically generated from the file name as described in section 2.

Column 4: Language 
Values: nno, nob, NA, unknown 

The method for identifying the language variety of each document is simple, but effective, and is based on Hofland’sxii language classification of Norwegian newspaper articles in the Norwegian Newspaper Corpus (NNC). 

Two lists of keywords are used, one for bokmål and one for nynorsk, each list with 13 keywords. First we calculate the proportion of words from each list being present in the text.  
If a larger proportion of the bokmål words is found in the document, e.g. 80% of the words in the bokmål list but only 30% (or 0%, or 77%) of the nynorsk keywords are found in the text, the document is classified as “nob”. If the proportion of nynorsk words found in the text is larger than the proportion of bokmål words found, the text is classified as “nno”. If the equal proportions of bokmål and nynorsk keywords are found in the text, it is per default classified as bokmål. 

The value 'NA' is given when the document could not be classified because it does not exist in a readable format (e.g., it is only available as a .wpd file). 'unknown' applies if the text cannot be classified, e.g. when a document does not contain any of the keywords in  the two lists. In this data set, 'unknown' does not apply. 'NA' occur 23 times, all with files that have unknown file extensions.

The classification identifies 4482 translations in Norwegian Bokmål and 930 in Norwegian Nynorsk. Of the documents that were successfully classified as either bokmål or nynorsk, 83% were bokmål and 17% nynorsk. The remaining documents (the 23 files mentioned) could not be classified because they were not available in a readable format. 

Column 5-10: File format

Columns 5-9 represent the file extensions txt, doc, wp, wpd, tok. They are binary valued and assigned values 1 or 0 depending on whether or not the document is available in the relevant format. The category 'unknown' (column 10) is assigned to files that are not available in any of the other formats (in effect this holds for the previously mentioned 23 documents).


4. Preprocessing the texts for sentence alignment 
Norwegian not being an official EU language, the European Commission/JRC have not been prioritized translating EU legislation acts into Norwegian or including Norwegian translations in the JRC-Acquis Multilingual Parallel Corpus or the DGT Translation Memoryxiii. Since the documents were translated without considerations for inclusion in a multilingual parallel corpus, some efforts are required to integrate them in the JRC-Acquis Parallel Corpus. 
The pre-processing of the documents involves stripping them of unwanted content, structuring and converting them to an appropriate format (xml), identifying the language form and handling the deviating celex numbersxiv. The alignment may be carried out automatically using the EU’s own alignment tools which aligns documents at paragraph level. However, the automatized alignment is error-prone and will probably require post-processing in terms of manual quality control. 
• In an e-mail to Koenraad De Smedt, Ralf Steinberger has describes JRC’s procedures for preparing and aligning the Acquis documents:
• Download the html documents from CELEX (now EUR-Lex) and convert them to TEI-compliant XML format;
• Identify empty texts or texts not written in the selected language;
• Identify what we named ‘signatures’ (things like ‘Done in Brussels on …’, lists of organisations that signed the document, lists of addresses or the like)
• Identify the annexes of the documents (because not all annexes were translated into all languages)
• Exclude texts that were too short and exclude documents for which we had less than 10 language versions;
• Run the Vanilla aligner to sentence-align documents for all language pair combinations; tune the Vanilla aligner to produce better results;
• Produce statistics on the size of the corpus, the number of the different types of alignments, etc.
• Independently, Dániel Varga also ran the HunAlign sentence aligner for all language pairs, so that we could offer two different alignments;
• For Romanian, Dan Tufiş’ group downloaded not-yet-official Romanian translations in MS-Word format, converted and cleaned them;
• Advertise the availability of the resource.
Steinberger estimates the workload to “a few” person-months. This would, however, presuppose access to all necessary tools and also experience with preparing and aligning texts for this particular corpus, the actual workload should thus be estimated significantly higher. 

The required work is too extensive for META-NORD with the limited resources and time span of the project, but Språkbanken may be able to take on the text preprocessing and sentence alignment. 
Ralph Steinberger at JRC has offered to host (or link to) the Norwegian texts and otherwise advertise their existence.
APPENDIX I: Permission of use from the EEA Secretariat to UiB
APPENDIX II: Details from the EEA Secretariat on size and access to files
APPENDIX III: Permission of use from the EEA Secretariat to NB
APPENDIX IV: Alignment table

i http://www.lovdata.no
ii http://meta-nord.eu
iii http://langtech.jrc.ec.europa.eu/JRC-Acquis.html
iv http://www.nb.no/English/Collection-and-Services/Spraakbanken
v http://digital.uni.no/prosjekter/avsluttede-prosjekter/eos-sekretariatets-terminologidatabase-og-norske-oversettelser-av-rettsakter-innlemmet-i-eos-avtalen
vi http://digital.uni.no/?set_language=en
vii http://decentius.aksis.uib.no/udbase/home.html
viii http://decentius.aksis.uib.no/termbase/documents.html
ix Typing in * retrives an overview of all documents
x http://www.efta.int/publications/eea-supplements.aspx
xi http://eur-lex.europa.eu/en/tools/faq.htm#1.12
xii Andersen, Gisle & Knut Hofland. 2012. Building a large corpus based on newspapers from the web. In Andersen, Gisle (ed.) Exploring Newspaper Language. Amsterdam/New York: John Benjamins, 1-28.
xiii http://langtech.jrc.it/DGT-TM.html#DGT-TM
xiv The latter two of these tasks have already been dealt with in a META-NORD delivery intended to pave the way for the integration of Norwegian JRC-Acquis into the JRC-Acquis Multilingual Parallel Corpus, see section 4.1

Bergen, November 2012