Two different things are in this repository and only one of them is ours to
license.

Ours
----

The engine in `src`, the romanizers in `rom`, the two front ends in `cli`, the
tools in `tools`, the tests in `test`, the reference build in `reference` and
the documents in `docs` are our own work: C written against IBM's objects and
checked against them, line by line, by the audio coming out. That is what the
MIT licence in LICENSE covers.

Two files in `src` are the exception, and they are data rather than code.
`src/klatt/klatt_tables.c` is the synthesiser's own tables, lifted out of `clsyn.obj`
by `tools/engine/klatt-tables.py`, and `src/eci/ssml/eci_xmltok_tables.c` is the eight tables the
XML scanner is, lifted out of `xmltok.obj` by `tools/engine/xmltok.py`. Both are
IBM's on the terms below, exactly as everything under `lang` is. The head of
each says which object it came from, and either can be produced again from
IBM's own file rather than taken on trust. Nothing else in `src` is lifted:
every other file there is C written by hand.

The XML scanner is worth a sentence on why. It is flex output, and a rule set
that has been compiled into a state machine cannot be recovered from the
machine -- the equivalence classes, the base and default rows and the accepting
lists are the only surviving statement of what the forty-eight rules were. So
lifting them was the only faithful course; writing a parser that behaved
roughly the same would have been ours and would have been a different scanner.

`rom` is where the split between the two halves matters most, and it is why
that directory exists at all. A language written in another script needs a
romanizer, which in IBM's SDK is a module of code beside the language's data.
The code is transcribed the way `src` is and is ours on the same terms; the
dictionary and the tables it reads are IBM's data and are in `lang/<tag>` with
the rest of that language, on the terms below. Putting the two in one
directory would have been tidier and would have made the licence line harder
to state truthfully.

Two pieces of that code were written outside this repository and came in
from their authors' own projects, under the same MIT licence, and their
copyright notices are in LICENSE beside ours. The arena allocator's walk from
the first free block, in `src/port/evv_arena.c`, is Josh Kennedy's, from
OpenEvv-sapi5, whose notice gives it to the OpenEVV SAPI5 contributors. The
NVDA add-on's per-language text encoding and its return to the reader's own
language, in `nvda/addon/synthDrivers/_openevv.py` and `openevv.py`, are
Felix Steindorff's, from openevv-nvda.

The Android voice in `android` came in whole from evvdroid, Quin Gillespie's
project at github.com/trypsynth/evvdroid, with the work Aryan Choudhary, aman
kumar gupta and adil-adysh added to it, under the same MIT licence. Its
history came with it, so each of its commits is still its author's, and its
copyright notice is in LICENSE beside ours. What it builds is the engine
here, so the language data an Android package carries is everything under
`lang` on the terms below, exactly as in every other build.

IBM's
-----

Everything under `lang` but `lang/fifi`, `lang/ptbr`, `lang/enus/dictionary`
and `lang/engb/dictionary` is transcribed out of IBM's Embedded ViaVoice objects:
`lang/enus` is US English, `lang/dede` is German, `lang/engb` is British
English, `lang/eses` and `lang/esus` are the two Spanishes, `lang/frfr` and
`lang/frca` the two Frenches and `lang/itit` is Italian. `lang/fifi` and
`lang/ptbr` are ETI's and `lang/enus/dictionary` is ours, begun from the
community's, and the two sections after this one say so, as they do of
`lang/engb/dictionary`, which is ours.

`lang/jajp` is Japanese and is not in the tree, because a language module that
cannot yet make an instance would break any build that named it. What that
directory holds when it is lifted is IBM's on exactly the terms above, and most
of it by volume is the romanizer's own data: the static dictionary of kanji and
their readings, the substitution tables that make romaji, and the codeset
conversion tables. `tools/rom/dictionary.py` and `tools/rom/tables.py` are what
lift it, and both read IBM's objects rather than being typed out here.

`lang/plpl` says Polish and is Italian. It was made by copying `lang/itit`'s
text forms and renaming them, because a language IBM never shipped has to start
from one it did, and every rule and every table in it is IBM's Italian data
until it has been replaced by something written here. Nothing about the
directory being called Polish makes any of it ours. `make EVVLANG=lang/plpl
census` is what says how much of it is still Italian, and while that answers
anything at all the answer above governs it.

The rules as bytecode, the constants they read, the
statement and field tables, the lookup sets, the variable declarations, the
settings the engine carries in its own image, the voice presets and the
dictionary, and where the engine's arithmetic depends on the exact bytes they
are the exact bytes. The rule names in each directory's
`delta_rules_<lang>.h` and `delta_rules_shim_<lang>.c` are IBM's names,
because they are the names its own compiler left in the objects.

Everything else in a module has a text form beside it now -- `<lang>.globals`,
`<lang>.settings`, `<lang>.statements`, `<lang>.sets` and `<lang>.dict` -- and
each of those is that same data written another way rather than anything of
ours, so they are IBM's on the same terms as the C they regenerate.

The same rules are in `lang/<lang>/rules` as text: one operation to a line in
`.dr` files, what each wrapper stands for in `wrappers.up`, and a few of them
written again as what they do in the `.up` files beside. Those are
transcriptions of IBM's rules rather than anything said about them, so they are
IBM's too, and so is anything of IBM's copied byte for byte into
`rules/constants`. The tools that write and read all of it are in `tools` and
are ours. The language in front of every name is ours as well, and is there so
that two languages can be linked into one program.

A language's `letters` file is its letter rules written another way, and is
IBM's on the same terms: `lang/enus/letters`, `lang/eses/letters` and
`lang/itit/letters` are transcriptions of IBM's own.

A rule written for a language rather than transcribed out of an object is ours,
and `lang/plpl/rules/is_val.up` and the Polish blocks of `lang/plpl/letters`
are that: the formant targets of sounds Italian has not got, and the
letter-to-sound rules for Polish's spelling and for its own letters. The blocks
of `lang/plpl/letters` that it says are still Italian's -- f, p, t, v, k, x,
a, l and m, copied from `lang/itit/letters` -- are IBM's Italian as that
file is, apart from the arms written into f, p, t and k for Polish, which
are ours. What those rules name is
still IBM's -- a phoneme number, a statement type and the code the alphabet
gives a character are its numbering, and a byte in `lang/plpl/rules/constants`
that stands for one of those stands for a number of its -- but what the rules
say with them was written here. That does not soften the paragraph above:
everything else in that module is IBM's Italian until it has been replaced.

So are `lang/enus/rules/ut_numbr.up` and `lang/engb/rules/ut_numbr.up`,
which read a long number's groups of noughts the way the same number without
commas is read, where IBM's rules read the comma after such a group as a
digit. They are written here and stand on IBM's rules rather than replacing
them: the two calls in each `ut_numbr.dr` that were pointed at them are an
edit to IBM's text, and the rest of that text is IBM's as it was. So is
`lang/enus/rules/ea_homog.up`, which settles two kinds of context IBM's
homograph rule had no test for when it decides how read is said, on the same
terms: the call to it in `ea_homog.dr` is the edit, and the rest is IBM's. The
words added to both Englishes' set of file endings said as words,
`three_letter_extensions` in each `.sets`, were chosen here; the set and the
words IBM put in it are IBM's.

That data is IBM's work, not ours. The MIT licence does not cover it and we are
in no position to license it to anyone. The SDK it was read out of says as much
itself, in `doc/wxp/readme.txt`:

    Licensed Materials - Property of IBM
    (C) Copyright IBM Corp. 1999, 2004  All Rights Reserved.

It is in the tree because the engine cannot speak without it, and because a
build that first needed a 110 megabyte SDK from 2004 is a build almost nobody
would ever run. That is a deliberate choice about being useful, not a claim
about ownership.

If you mean to do more with this than read it and run it, the rights in that
data are yours to sort out with whoever holds them, and who that is today is
not simple. IBM published these objects. The engine underneath them was
Eloquence, by Eloquent Technology, which passed to SpeechWorks, then ScanSoft,
then Nuance, whose text-to-speech rights went to Cerence in the 2019 spinoff
and are now the subject of Cerence Inc. v. Microsoft Corporation and Nuance
Communications, Inc., D. Del. 1:25-cv-00553, filed 6 May 2025. None of this is
legal advice.

ETI's
-----

In `lang/enus` and in `lang/engb` alike: the rules that say they were lifted
by `tools/rules/lift64.py` -- at the end of `rules/ut_norm.up` in both, and in
`lang/enus` the ones in `rules/et_prfx.up` and `rules/et_numbr.up` too -- the
bytes named `eti_` in `rules/constants`, the sixth character type and the
records that use it in the statements, the six variables the globals' comments
say are 6.1's and, in `lang/enus`, the seven more they say are, those of them
that `set_global_constants` in `rules/u_vars.dr` now sets to 6.1's values, and
the set of three-letter domain names in the sets are ETI Eloquence 6.1's, read
out of the US and British English language modules Apple ships with its
operating systems. They are on the same footing as everything under `lang`: no
more ours to license than IBM's are, and nothing here grants anything in them.
Two things in those rules are not 6.1's, and both are edits to its text rather
than anything with a claim of its own: the call `normalize_text` makes to IBM's
`backquote`, and the annotations three of the `eti_` strings write with IBM's
mark rather than 6.1's.

In `lang/dede`, `lang/eses`, `lang/esus`, `lang/frfr`, `lang/frca`,
`lang/itit` and `lang/plpl` alike: the rules at the end of `rules/ut_norm.up`
that say they were lifted by `tools/rules/lift64.py`, the bytes named `eti_`
in `rules/constants`, and the sixth character type and the records that use
it in the statements are ETI Eloquence 6.1's, read out of the German, the two
Spanish, the two French and the Italian modules Apple ships, Polish's being
Italian's. They are on the same footing. The `convert_phone_number` at the
end of both Frenches' `ut_norm.up` is ours.

In `lang/enus` alone, the words `lang/enus/merge` says were added, set or read
as 6.1 reads them say what 6.1 says, taken from what it speaks rather than
from its tables, and are on the same footing. The ledger itself, the letter
arms it names and the tools that measured it are ours, and so is
`smiley_stands_alone` in `rules/ea_text.up`, written to ask where a smiley
stands as 6.1's own arms for the smileys ask it.

`lang/fifi`, Finnish, is ETI Eloquence 6.1's from end to end: the rules in its
`rules/f61_*.up`, the strings in `rules/constants`, the variables, the
statement table, the sets and dictionaries, the settings and the voices, and
the C written from all of them, read out of the Finnish module Apple ships by
`tools/module/lift61.py` and `tools/rules/lift64.py`. Its doubles are kept
here as whole numbers of ten-thousandths, which is the same data written
another way. The one rule in `rules/written.up` was written here because the
lifter could not read 6.1's, and it says what 6.1's does, so it is a
transcription and on the same footing. None of it is ours to license.

`lang/ptbr`, Brazilian Portuguese, is ETI Eloquence 6.1's on exactly the same
terms, read out of the Portuguese module Apple ships, and the one rule in its
`rules/written.up` is the same transcription as Finnish's.

The dictionary US English carries
---------------------------------

`lang/enus/dictionary` began on 14 October 2026 as a snapshot of
IBMTTSDictionaries,

    https://github.com/eigencrow/IBMTTSDictionaries

pronunciations written for this engine by the people who listen to it,
maintained by amirsol81, x0 and thunderdrop with contributions from many.
Its authors dedicated it to the public domain under CC0 1.0,

    https://creativecommons.org/publicdomain/zero/1.0/

and on 30 October 2026 it became ours: one set of files, with the entries
we took out of it named in `removed` and the commit of theirs whose changes
it has taken named in `upstream`. The MIT licence covers what we wrote and
the whole as it is put together, and so `split`, `removed`, `upstream`,
`sayable`, `pieces` and `lang/engb/dictionary` as well. The community's entries in it were given to
the public domain by their authors and stay free to anyone, whatever this
file says.

Some of its entries were written by tools/measure/published.py out of two
dictionaries that ask nothing of whoever copies them. The Moby
Pronunciator II is Grady Ward's, placed in the public domain by grant of its
author in January 2001. The Carnegie Mellon Pronouncing Dictionary of 1993
is Copyright 1993 by Carnegie Mellon University, which made its use for any
research or commercial purpose completely unrestricted and asked only to be
acknowledged, which this is. Wiktionary decides which of their readings is
the published one and nothing of Wiktionary is copied.

`sayable` and the body of `pieces` in both Englishes are written by
tools/module/sayable.py out of Moby's word lists, which Grady Ward placed in
the public domain with the Pronunciator, and the same 1993 release of CMU's
dictionary. The way the engine uses them, asking whether English could say a
word and spelling what it could not, is the way eSpeak NG reads a word it
does not know; nothing of eSpeak NG's is copied.

Where it came from
------------------

IBM's Embedded ViaVoice 4.3 SDK for Windows, which IBM still serves at

    https://public.dhe.ibm.com/software/pervasive/tools/viavoice/sdk/evvWXP.exe

`docs/building.md` says what to do with it, and every tool that reads it is in
`tools`, so anything under `lang` can be produced again from IBM's own file
rather than taken on trust.

What is ETI's came out of `enu.dylib`, `eng.dylib`, `fin.dylib` and
`ptb.dylib` as Apple's tvOS 18.2 ships them, read by `tools/rules/lift64.py`
and `tools/module/lift61.py`, which work on any of Apple's modules of that
engine.

Measured against
----------------

`test/cases/words-fifi.txt` is twenty thousand words spread through the
vocabulary of the Voikko project's Finnish (https://voikko.puimula.org),
whose copyright holders are listed in its CONTRIBUTORS and which is published
under the GNU General Public License, version 2 or later. Only the words are
here, lowercased; `tools/measure/wordlist.py` says how they were chosen.

`test/cases/words-ptbr.txt` is twenty thousand words spread through VERO, the
Brazilian Portuguese spelling dictionary LibreOffice ships, copyright
Raimundo Santos Moura and published under the GNU Lesser General Public
License, version 3, and the Mozilla Public License. Only the words are here,
lowercased, chosen the same way.

The Polish intonation numbers in `docs/status.md` were measured from FLEURS
(https://huggingface.co/datasets/google/fleurs), read speech published by
Google under CC BY 4.0, of which the Polish, US English and Italian
development sets were used. Neither its audio nor its text is in this
repository; what is here is the numbers derived from it and `tools/measure/pitch.py`,
which derived them.

Names
-----

IBM, ViaVoice and Embedded ViaVoice are trademarks of International Business
Machines Corporation. Eloquence is a trademark of its respective owner. This
project is not affiliated with, endorsed by or supported by IBM, Cerence,
Nuance, Microsoft or Apple.
