Copyright and licensing of lupa and of the third-party material it includes
===========================================================================

lupa is copyright (c) 2026 Sebastián Lucas and is distributed under the GNU
General Public License, version 3 (GPL-3). It includes material from two other
projects, each under a license compatible with GPL-3. Their authors are listed
in the Authors@R field of DESCRIPTION with the roles "ctb" and "cph".


1. ftfy 6.3.1 <https://github.com/rspeer/python-ftfy>
-------------------------------------------------------

By Robyn Speer <https://github.com/rspeer>.
Copyright 2023 Robyn Speer
Licensed under the Apache License, Version 2.0.

What lupa takes from ftfy:

* R/reparacion-texto.R translates from Python to R the byte tables and the
  "sloppy" codecs, the character categories, the regular expressions (badness,
  the UTF-8 detector, the lossy sequences and the A0 byte) and the repair
  functions with their loop, from ftfy's __init__.py, badness.py, chardata.py,
  fixes.py, bad_codecs/sloppy.py and bad_codecs/utf8_variants.py. These parts
  were modified by Sebastián Lucas: they were translated to R and adapted to
  lupa. The file says so in its header.

* The seven files tests/testthat/fixtures/ftfy-*-6.3.1.json are data exported
  from ftfy 6.3.1: the A0-byte and lossy-sequence expressions, the badness
  expression, the character categories, the CESU-8 tables, the UTF-8 detector
  and the test corpus. They are used only by the test suite.

ftfy 6.3.1 has no NOTICE file. The full text of the Apache License, Version
2.0 is distributed with R in share/licenses/Apache-2.0 and is available at
<https://www.apache.org/licenses/LICENSE-2.0>. The notice of ftfy reads:

    Copyright 2023 Robyn Speer

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


2. naniar 1.1.0 <https://github.com/njtierney/naniar>
-------------------------------------------------------

By Nicholas Tierney <https://github.com/njtierney> and others.
Copyright (c) 2016-2018 Nicholas Tierney
Licensed under the MIT License.

What lupa takes from naniar: the exported object sentinelas_naniar and the
missing-value strings used by default (R/faltantes.R) reproduce naniar's
common_na_numbers and common_na_strings: twenty-six strings, of which
twenty-three are verbatim and three are stored as literals where naniar
publishes them escaped for regular expressions, and the eight numbers -9, -99,
-999, -9999, 9999, 66, 77 and 88, unchanged. No naniar code is used.

The license of naniar reads:

    MIT License

    Copyright (c) 2016-2018 Nicholas Tierney

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to permit
    persons to whom the Software is furnished to do so, subject to the
    following conditions:

    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
    NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
    DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
    OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
    USE OR OTHER DEALINGS IN THE SOFTWARE.
