Spanish and Aragonese

                            apertium-spa-arg
===============================================================================

This is an Apertium language pair for translating between Spanish and
Aragonese. What you can use this language package for:

* Translating between Spanish and Aragonese
* Morphological analysis of Spanish and Aragonese
* Part-of-speech tagging of Spanish and Aragonese

For information on the latter two points, see subheading "For more
information" below

Requirements
===============================================================================

You will need the following software installed:

* lttoolbox (>= 3.4.0)
* apertium (>= 3.3.2)
* vislcg3 (>= 0.9.9.10297)
* apertium-spa
* apertium-arg

If this does not make any sense, we recommend you look at: apertium.org

Compiling
===============================================================================

Given the requirements being installed, you should be able to just run:

$ ./configure
$ make
# make install

You can use ./autogen.sh instead of ./configure you're compiling from
SVN. If you installed any prerequisite language packages using a --prefix
to ./configure, make sure to give the same --prefix to ./configure here.

Testing
===============================================================================

If you are in the source directory after running make, the following
commands should work:

$  echo "TODO test sentence 1" | apertium -d . spa-arg
TODO test translated sentence 1

$ echo "TODO test sentence 2" | apertium -d . arg-spa
TODO test translated sentence 2

After installing somewhere in $PATH, you should be able to do e.g.

$  echo "TODO test sentence 1" | apertium spa-arg
TODO test translated sentence 1

Files and data
===============================================================================

* apertium-spa-arg.spa-arg.dix  - Bilingual dictionary
* apertium-spa-arg.spa-arg.t1x  - Chunking rules for translating into Spanish
* apertium-spa-arg.arg-spa.t1x  - Chunking rules for translating into Aragonese
* apertium-spa-arg.spa-arg.t2x  - Interchunk rules for translating into Spanish
* apertium-spa-arg.arg-spa.t2x  - Interchunk rules for translating into Aragonese
* apertium-spa-arg.spa-arg.t3x  - Postchunk rules for translating into Spanish
* apertium-spa-arg.arg-spa.t3x  - Postchunk rules for translating into Aragonese
* apertium-spa-arg.spa-arg.lrx  - Lexical selection rules for translating into Spanish
* apertium-spa-arg.arg-spa.lrx  - Lexical selection rules for translating into Aragonese
* modes.xml                     - Translation modes

For more information
===============================================================================

* https://wiki.apertium.org/wiki/Installation
* https://wiki.apertium.org/wiki/apertium-spa-arg
* https://wiki.apertium.org/wiki/Using_an_lttoolbox_dictionary

Help and support
===============================================================================

If you need help using this language pair or data, you can contact:

* Mailing list: apertium-stuff@lists.sourceforge.net
* IRC: #apertium on irc.oftc.net

See also the file AUTHORS included in this distribution.

## 1.0.0 release preparation — 1 December 2026

Expanded reviewed bilingual vocabulary using DicAra, historical dictionaries
and corpus frequencies. Refined preferred translations and directional
alternatives, contextual lexical selection and transfer, including negation,
adubir constructions and proper names. Superlatives use muy/muit plus an
adjective when an appropriate synthetic form cannot be generated.

Dictionary snapshot: 31,220 active XML section entries, including 8,051 proper-name entries; 15 disabled section entries excluded. These are XML counts, not
counts of distinct words, generated forms or translations.

Aragonese generation supports nine optional preferences: y/e,
-ato/-ata/-ito/-ita participial and related nominal endings, per/por, mas/mes,
nos/mos, tos/vos, periphrastic past, short gerunds (-and/-end/-ind), and short
first-person plural forms. Defaults are preserved unless an option is enabled.

### Corpus coverage (%)

| Corpus | Pair direction | Full analysis | Trimmed analysis | Final output |
| --- | --- | ---: | ---: | ---: |
| Common Voice | ARG→SPA | 95.29 | 92.59 | 92.56 |
| Wikipedia (AAL) | ARG→SPA | 91.31 | 88.65 | 88.73 |
| Literature/press (AAL) | ARG→SPA | 96.15 | 92.75 | 92.85 |
| castellano.txt | SPA→ARG | 99.53 | 98.15 | 98.20 |
| es.crp.txt | SPA→ARG | 93.73 | 89.79 | 89.76 |
| FLORES dev | ARG→SPA | 95.73 | 93.82 | 93.97 |
| FLORES dev | SPA→ARG | 97.67 | 94.24 | 94.26 |
| FLORES devtest | ARG→SPA | 96.15 | 94.26 | 94.39 |
| FLORES devtest | SPA→ARG | 97.91 | 94.49 | 94.46 |

Coverage was measured on 1 December 2026 with default preferences. Full and
trimmed analysis count native lexical units containing letters with at least one
analysis; final-output coverage counts orthographic word tokens without *, @ or #.
The three measures have different denominators. Coverage is not translation
accuracy. The non-FLORES corpora have also been used during development.

The owner reports that the Aragonese corpus copies are adapted to AAL, possibly
without a thorough revision. No spelling conversions or content filtering were
performed for this evaluation. Wikipedia includes foreign text and markup residue.
ca_test is a subset of ca.crp.txt and is not an independent corpus.

### FLORES reference evaluation

| Direction | Split | BLEU | chrF2 | WER (%) | PER (%) |
| --- | --- | ---: | ---: | ---: | ---: |
| SPA→ARG | dev | 66.87 | 82.53 | 20.28 | 18.50 |
| SPA→ARG | devtest | 62.20 | 79.71 | 24.44 | 21.87 |
| ARG→SPA | dev | 67.82 | 81.67 | 19.85 | 17.94 |
| ARG→SPA | devtest | 63.27 | 78.60 | 23.79 | 21.04 |

997 dev and 1,012 devtest segments; native unmarked output (-u), default
preferences. SacreBLEU 2.4.3: case-sensitive BLEU/13a and chrF2 (character order
6, word order 0, beta 2); WER/PER use NFC and case-sensitive 13a tokenization,
micro-averaged over segments. Lower WER/PER is better.
Note that FLORES corpus sentences are not always direct translations.

Spanish/Aragonese references: https://github.com/transducens/PILAR (FLORES+).
The Aragonese reference was initially translated with Apertium, then post-edited
and reviewed: reference provenance can favour related systems. Catalan references
are from FLORES-200, translated independently; scores across language pairs are
not directly comparable. Reference-based scores do not establish semantic accuracy.

### Testvoc

Testvoc OK with trimmed dictionaries and default preferences: ARG→SPA 189,656, SPA→ARG 190,251.
Zero @ and zero # in this finite lexical test. Enclitic combinations and
regex-only entries are outside its scope; see dev/ for the runner and summaries.
The full Common Voice translation still has six generation-marked occurrences
in five sentences with enclitics; these are counted in output coverage.
