view on FreshPorts

Why this port's declared license doesn't verbatim-match SPDX's canonical text for it. The highlighted line (if any) is where the authoritative template comparison first broke down.

BSD3CLAUSE no match (?%)

Unable to find the text ' Redistribution and use in source and binary forms' following a variable rule 'copyright' starting at line #51 column #16 ""

Port's license text

Copyright (c) 2012, Yahoo! Inc.  All rights reserved.

Redistribution and use of this software in source and binary forms, 
with or without modification, are permitted provided that the following 
conditions are met:

* Redistributions of source code must retain the above
  copyright notice, this list of conditions and the
  following disclaimer.

* Redistributions in binary form must reproduce the above
  copyright notice, this list of conditions and the
  following disclaimer in the documentation and/or other
  materials provided with the distribution.

* Neither the name of Yahoo! Inc. nor the names of its
  contributors may be used to endorse or promote products
  derived from this software without specific prior
  written permission of Yahoo! Inc.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Additional project licensing notice
-----------------------------------

The BSD 3-Clause terms above continue to govern the original Yahoo! KeyKey
source and modifications derived from it. Original platform frontend files
and project-original AI data/database material identified in LICENSING.md are
licensed under the MIT License, with
copyright held by Chui-Ping Cheng.
Third-party components and data remain under their respective licenses.
Nothing in this notice relicenses Yahoo! KeyKey or third-party material.

See LICENSING.md for the authoritative scope map and
LICENSES/MIT.txt for the MIT License text covering the original frontends.

AI-generated articles and project-original database content identified in
LICENSING.md are available under the MIT License to the extent the project
rights holder can grant rights. See LICENSES/AI-DATA-NOTICE.txt for the scope
and complete MIT License text. Third-party database portions retain their
respective terms.

SPDX canonical text (BSD-3-Clause)

Copyright (c) <year> <owner>. 

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MIT no match (?%)

Unable to find the text ' Permission is hereby granted, free of charge, to any person obtaining a copy of ' following a variable rule 'copyright' starting at line #117 column #80 "". Last optional text was not found due to the optional difference: Normal text of license does not match starting at line #1 column #1 "licensing" when comparing to template text "MIT License "

Port's license text

# Licensing map

chichi77 KeyKey is a mixed-license repository. A license applies only to the
files and original material for which its copyright holder can grant rights.
A build may therefore contain material under more than one license.

## Yahoo! KeyKey source — BSD 3-Clause

The original Yahoo! KeyKey source and files derived from it remain under the
BSD 3-Clause terms in [`LICENSE.txt`](LICENSE.txt). All existing Yahoo!
copyright and license headers must be retained. This includes the legacy
frameworks, modules, data tables, utilities, preference applications, and the
existing `Source/Loaders/OSX-IMK/` implementation.

Later changes to an existing Yahoo! file do not remove the Yahoo! notice or
its BSD conditions.

## Original platform frontends — MIT

Copyright (c) 2026 Chui-Ping Cheng

Except where a file or the exceptions below state otherwise, original source,
tests, project configuration, and documentation authored for these frontends
are licensed under the MIT License:

- `Source/Loaders/Android-IME/`
- `Source/Loaders/iOS-Keyboard/`
- `Source/Loaders/Linux-IME/`
- `Source/Loaders/Windows-TSF/`
- `Source/Shared/` (except Unicode-derived data; see below)

The MIT License text for these frontends is in
[`LICENSES/MIT.txt`](LICENSES/MIT.txt). Each frontend also has a directory-level
`LICENSE.txt`, so individual source files do not need repetitive license
headers.

The MIT License applies only to the original frontend material in those
directories. It does not change the license of libraries, modules, data,
generated assets, or other material that a frontend reads, links, copies, or
packages.

## AI articles and original database content — MIT

Copyright (c) 2026 Chui-Ping Cheng

To the extent the project rights holder can grant rights, AI-generated articles
in `DataSource/AISyntheticArticles/` and AI-generated corpora and project-original
derived database content, bigram data, counts, and weights in
`DataSource/AISyntheticBigram/` are licensed under the MIT License.
This includes article samples, training and validation articles, seed files,
JSONL exports, corpus snapshots, and covered portions incorporated into `KeyKey.db`.
The grant permits reuse, modification, redistribution, commercial use, and model
training or evaluation, subject to the MIT copyright and permission notice requirements.

See [`LICENSES/AI-DATA-NOTICE.txt`](LICENSES/AI-DATA-NOTICE.txt) and the matching
notices in both data directories for the scope and full MIT License text. This grant
does not assert that AI output, individual words, facts, or statistics necessarily
qualify for copyright protection. It does not reduce valid prior grants, restrict
uses requiring no permission under law, or relicense tools, third-party
data, or separately licensed collections such as `DataSource/chichi77Collection`.

## Exceptions

- `Source/Shared/CangjieUnicodeData.h` derives canonical CJK mappings and category ranges
  from Unicode 16.0.0. Its data retains Unicode License V3 in
  `Source/Shared/Unicode-LICENSE.txt`, included in desktop distributions.

- The Gradle wrapper files under `Source/Loaders/Android-IME/gradle/wrapper/`,
  `gradlew`, `gradlew.bat`, and generated Gradle JVM criteria retain their
  upstream notices and licenses.
- McBopomofo data under `DataSource/McBopomofo/` remains under its MIT License.
- A generated or bundled `KeyKey.db` retains the licenses of its input data;
  its project-original AI-derived portions are licensed under the MIT grant above.
  Packaging or combining the data does not relicense third-party portions.
- OpenVanilla, PlainVanilla, Formosa, Manjusri, and module packages retain the
  licenses and copyright notices stated in their source files.
- Windows simplified output links the existing `OVOFHanConvert` implementation
  and both conversion tables. Their MIT and BSD notices and Encode::HanConvert
  attribution are retained in [`LICENSES/OpenVanilla-HanConvert.txt`](LICENSES/OpenVanilla-HanConvert.txt)
  and included in Windows packages.
- `Source/Loaders/Linux-IME/data/tc2sc.cin` is generated from the read-only
  OpenVanilla `VXHCTC2SCTable.c` mapping and retains that table's BSD 3-Clause
  terms and attribution, including its recorded Encode::HanConvert origin.
- `Source/Loaders/Linux-IME/gnome-panel/` contains inspected GNOME Input
  Method Panel source, the placement patch, and its packaging tools under
  GPL-2.0. The license text is in `gnome-panel/COPYING`. This directory builds
  a separate GNOME Shell package; the independent Linux engine and Fcitx addon
  remain under MIT.
- OpenSSL and other third-party components retain the licenses recorded in
  [`THIRD-PARTY-NOTICES.md`](THIRD-PARTY-NOTICES.md) or their own license files.
- Product names, logos, and application icons are not licensed by this map.
  Open-source software licenses do not grant trademark rights.
- `DataSource/chichi77Collection` is released under its own MIT License. That
  license applies only to material the copyright holder can license, including
  original selection, classification, and arrangement where copyrightable. No
  exclusive rights are claimed in common expressions, facts, public-domain
  material, or other uncopyrightable content. The collection was generated,
  inferred, and normalized automatically, has not been reviewed or corrected
  item by item, and is provided without any guarantee of accuracy or
  completeness.

## New macOS loader files

A genuinely new file added to `Source/Loaders/OSX-IMK/` may be licensed under
the MIT License when it is original work and contains no copied Yahoo! or
third-party code. Add its path to this map so the scope remains explicit.
Existing files in that directory are not relicensed by this rule.

## Binary distribution

A binary distribution must reproduce the applicable Yahoo BSD, frontend MIT,
and third-party notices in its documentation or other accompanying materials.
The MIT License does not require a distributor to publish modified source.

Distributions containing the covered AI data or project-original database portions
must retain the applicable MIT copyright and permission notices. Third-party
portions of a combined database remain subject to their own license requirements.

SPDX canonical text (MIT)

MIT License

Copyright (c) <year> <copyright holders>

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.