TypoFree — Third-Party Notices
===============================

TypoFree is closed-source, but it is built in part from open-source and
openly-licensed third-party data and software. This file lists every such
component: upstream project, license, copyright holder, what it is used for,
and — where the license requires it — the license's full text. A one-line
summary is shown in TypoFree ▸ Settings ▸ 词库, with a button that opens this
exact file.

This file has four parts:
  Part 1 — Chinese lexicon and language-association data compiled into the
           lexicon.bin / readings.bin / bigram.bin resources shipped inside
           the app bundle.
  Part 2 — Swift Package Manager dependencies resolved for the TypoFree app
           target (source: TypoFree.xcodeproj's Package.resolved).
  Part 3 — Tools used only to build the Part 1 data files at development
           time; none of these are distributed inside the app bundle.
  Part 4 — Language model weights the app downloads on demand at runtime;
           these are not bundled inside the app either.

None of the lexicon data in Part 1 ships as the original source text — it is
compiled offline into three binary blobs (lexicon.bin / readings.bin /
bigram.bin). Two of that compilation's inputs (rime-essay, rime-luna-pinyin,
below) are LGPL-3.0, which makes the compiled lexicon.bin a derived form of
LGPL-3.0 data. TypoFree is a closed-source binary, so this is not "the build
script is part of this app's source tree" (there is no public source tree a
recipient of this binary can go read) — compliance is instead the LGPL-3.0 §4
"suitable shared library mechanism" way, entirely inside what ships:

  - Corresponding Source is bundled inside the app at
    Contents/Resources/lexicon-source/ — the build scripts (build_lexicon.py
    and its siblings), the supplementary word lists merged into the compiled
    blobs, and provenance + rebuild instructions (which pinned upstream
    commit/hash of each source file to fetch, and from where). Re-running
    build_lexicon.py against fresh copies of the upstream sources it
    documents regenerates the blobs from scratch, byte-for-byte
    deterministically. The upstream data files themselves (essay.txt,
    luna_pinyin.dict.yaml, …) are not bundled there — they are fetched from
    their own repositories, exactly as lexicon-source/README.md documents.
  - Full license texts for LGPL-3.0 and GPL-3.0 are bundled at
    Contents/Resources/licenses/.
  - A "suitable shared library mechanism" for a compiled data file: TypoFree
    loads a user-built replacement for any of the three blobs from
    ~/Library/Application Support/TypoFree/{lexicon,readings,bigram}.bin
    when present, instead of its own bundled copy — so this data can be
    modified and replaced without this application's source code at all.
    Settings ▸ 词库 shows which source is active for each file; the CLI
    `TypoFree --lexicon-status` reports the same from the command line.

Full source provenance, pinned upstream commits/hashes, and rebuild
instructions (development-tree copy of the same document that ships at
Contents/Resources/lexicon-source/README.md): labs/typofree/data/README.md.


================================================================================
PART 1 — Chinese lexicon and language-association data
================================================================================


----------------------------------------------------------------------------
rime-essay
----------------------------------------------------------------------------


Upstream:  https://github.com/rime/rime-essay
License:   GNU Lesser General Public License v3.0 (LGPL-3.0)
Copyright: (c) Rime Input Method Engine contributors
Role:      Word list + integer frequency (essay.txt) — the base source of
           candidate words and their ranking in the compiled lexicon.

Not shipped as source text: compiled offline into lexicon.bin, making that
blob a derived form of this LGPL-3.0 data. The Corresponding Source
(build_lexicon.py, the other build scripts, the supplementary word lists
merged into the blob, and pinned-source + rebuild instructions) is bundled
inside this app at Contents/Resources/lexicon-source/ — see the intro above
for why that is the LGPL-3.0 §4 compliance path for a closed-source binary.
Full license text bundled at Contents/Resources/licenses/LGPL-3.0.txt (also
https://www.gnu.org/licenses/lgpl-3.0.html). A user-built replacement at
~/Library/Application Support/TypoFree/lexicon.bin, when present, loads
instead of this compiled blob.


----------------------------------------------------------------------------
rime-luna-pinyin
----------------------------------------------------------------------------


Upstream:  https://github.com/rime/rime-luna-pinyin
License:   GNU Lesser General Public License v3.0 (LGPL-3.0)
Copyright: (c) Rime Input Method Engine contributors
Role:      Per-reading percentage weights for single characters
           (luna_pinyin.dict.yaml) — splits a character's measured
           frequency across its multiple pronunciations, e.g. 得 de 97% /
           dei 3%, 了 le 98.9% / liao 1.1%.

Not shipped as source text: compiled offline into lexicon.bin, making that
blob a derived form of this LGPL-3.0 data. The Corresponding Source
(build_lexicon.py, the other build scripts, the supplementary word lists
merged into the blob, and pinned-source + rebuild instructions) is bundled
inside this app at Contents/Resources/lexicon-source/ — see the intro above
for why that is the LGPL-3.0 §4 compliance path for a closed-source binary.
Full license text bundled at Contents/Resources/licenses/LGPL-3.0.txt (also
https://www.gnu.org/licenses/lgpl-3.0.html). A user-built replacement at
~/Library/Application Support/TypoFree/lexicon.bin, when present, loads
instead of this compiled blob.


----------------------------------------------------------------------------
phrase-pinyin-data
----------------------------------------------------------------------------


Upstream:  https://github.com/mozillazg/phrase-pinyin-data
License:   MIT
Copyright: Copyright (c) 2017 mozillazg
Role:      Word-level, heteronym-correct pinyin for multi-character phrases
           (large_pinyin.txt) — first-choice pinyin resolution for any word
           longer than one character.

MIT License

Copyright (c) 2017 mozillazg

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.


----------------------------------------------------------------------------
pinyin-data
----------------------------------------------------------------------------


Upstream:  https://github.com/mozillazg/pinyin-data
License:   MIT
Copyright: Copyright (c) 2016 mozillazg
Role:      Per-character pinyin reading inventory (pinyin.txt) — feeds
           readings.bin (every toneless reading of every character) and is
           the character-decomposition fallback when a word has no exact
           match in phrase-pinyin-data.

The MIT License (MIT)

Copyright (c) 2016 mozillazg

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.


----------------------------------------------------------------------------
ali-words (互联网黑话词汇表)
----------------------------------------------------------------------------


Upstream:  https://github.com/justjavac/ali-words
License:   Unlicense (public domain dedication)
Copyright: none — dedicated to the public domain by its author
Role:      word list only — 111 internet/workplace jargon terms absent from
           every other source (透传, 脑暴, 组局, 天使轮, 新零售, …) were
           validated by tools/gen_llm_words.py --import-list and filed under
           the `jargon_list` section of tools/llm_words.tsv at tier C
           (0.5.1). No text, code or frequencies were taken.

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

For more information, please refer to <https://unlicense.org>


----------------------------------------------------------------------------
jieba
----------------------------------------------------------------------------


Upstream:  https://github.com/fxsjy/jieba
License:   MIT
Copyright: Copyright (c) 2013 Sun Junyi
Role:      jieba/dict.txt word list and word frequencies — general-vocabulary
           backfill for modern words absent from rime-essay (only entries
           with count >= 10 are used).

The MIT License (MIT)

Copyright (c) 2013 Sun Junyi

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.


----------------------------------------------------------------------------
Chinese Wikipedia
----------------------------------------------------------------------------


Upstream:  https://zh.wikipedia.org
License:   Creative Commons Attribution-ShareAlike 3.0 (CC BY-SA 3.0)
Copyright: (c) Wikipedia contributors

Contains statistics derived from Chinese Wikipedia (https://zh.wikipedia.org),
CC BY-SA 3.0.

Role: corpus for bigram.bin (word-association PMI model) only, computed
offline from a 2023-11-01 Chinese Wikipedia dump (wikimedia/wikipedia,
config 20231101.zh). Only derived word-pair counts are compiled into
bigram.bin — no article text ships in the app. Full license text:
https://creativecommons.org/licenses/by-sa/3.0/


================================================================================
PART 2 — Runtime Swift dependencies (Swift Package Manager)
================================================================================


This part enumerates every package pinned in TypoFree.xcodeproj's
Package.resolved — the full resolved dependency graph for the TypoFree app
target plus its TypoFreeLLM and IMKSwift package products (TypoFreeCore, the
app's other local package, declares zero external dependencies). A handful
of these are pulled in only because Swift Package Manager resolves an
upstream package's whole manifest — including example and CLI-tool targets
this app never builds — the moment the app depends on any one product from
that package; they are listed here regardless, for completeness rather than
proven reachability from the shipped binary.


----------------------------------------------------------------------------
IMKSwift
----------------------------------------------------------------------------


Upstream:  https://github.com/vChewing/IMKSwift
Version:   26.6.2 (pinned)
License:   MIT
Copyright: Copyright (c) 2026 ShikiSuen
Role:      Swift wrapper around macOS's Input Method Kit (IMK) — the app's
           input controller is built on it.

MIT License

Copyright (c) 2026 ShikiSuen

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.


----------------------------------------------------------------------------
mlx-swift
----------------------------------------------------------------------------


Upstream:  https://github.com/ml-explore/mlx-swift
Version:   0.31.6 (pinned)
License:   MIT
Copyright: Copyright (c) 2023 ml-explore
Role:      Swift bindings for Apple's MLX array framework — runs the
           on-device correction model's tensor ops (Metal/CPU).

MIT License

Copyright (c) 2023 ml-explore

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.

mlx-swift's own C++ core additionally bundles the following third-party
components (per its ACKNOWLEDGMENTS.md):


----------------------------------------------------------------------------
mlx-swift ▸ bundled: PocketFFT
----------------------------------------------------------------------------


Copyright: Copyright (C) 2010-2018 Max-Planck-Society. All rights reserved.
License:   BSD-3-Clause-style (text below)

Redistribution and use 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 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.


----------------------------------------------------------------------------
mlx-swift ▸ bundled: metal-cpp
----------------------------------------------------------------------------


Copyright: Copyright (c) 2023 Apple Inc.
License:   Apache License, Version 2.0 — full text:
           https://www.apache.org/licenses/LICENSE-2.0


----------------------------------------------------------------------------
mlx-swift ▸ bundled: gguf-tools
----------------------------------------------------------------------------


Copyright: Copyright (c) 2022 Georgi Gerganov
License:   MIT

MIT License

Copyright (c) 2022 Georgi Gerganov

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.


----------------------------------------------------------------------------
mlx-swift ▸ bundled: nlohmann json
----------------------------------------------------------------------------


Copyright: Copyright (c) 2013-2022 Niels Lohmann
License:   MIT

MIT License

Copyright (c) 2013-2022 Niels Lohmann

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.


----------------------------------------------------------------------------
mlx-swift-lm
----------------------------------------------------------------------------


Upstream:  https://github.com/ml-explore/mlx-swift-lm
Version:   2.31.3 (pinned)
License:   MIT
Copyright: Copyright (c) 2024 ml-explore
Role:      Model loading/inference (MLXLLM, MLXLMCommon) for the on-device
           Qwen correction model, built on top of mlx-swift.

MIT License

Copyright (c) 2024 ml-explore

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.


----------------------------------------------------------------------------
swift-transformers
----------------------------------------------------------------------------


Upstream:  https://github.com/huggingface/swift-transformers
Version:   1.2.1 (pinned)
License:   Apache License, Version 2.0
Copyright: (c) Hugging Face
Role:      Tokenizer + Hugging Face Hub model download support, used by
           mlx-swift-lm to load the Qwen correction model.

Full license text: https://www.apache.org/licenses/LICENSE-2.0


----------------------------------------------------------------------------
swift-numerics
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-numerics
Version:   1.1.1 (pinned)
License:   Apache License v2.0 with Runtime Library Exception
Copyright: Copyright (c) 2019-2025 Apple Inc. and the Swift Numerics
           project authors
Role:      Numeric protocols (Complex, Real) used by mlx-swift's MLX
           product.

Full license text: https://www.apache.org/licenses/LICENSE-2.0 plus the
Swift Runtime Library Exception: https://swift.org/LICENSE.txt


----------------------------------------------------------------------------
swift-argument-parser
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-argument-parser
Version:   1.8.2 (pinned)
License:   Apache License v2.0 with Runtime Library Exception
Copyright: Copyright (c) 2020 Apple Inc. and the Swift project authors
Role:      Resolved as part of mlx-swift's package graph (its "encuda"
           CUDA-build-tool target); not exercised by this app's own code.

Full license text: https://www.apache.org/licenses/LICENSE-2.0 plus the
Swift Runtime Library Exception: https://swift.org/LICENSE.txt


----------------------------------------------------------------------------
EventSource
----------------------------------------------------------------------------


Upstream:  https://github.com/mattt/EventSource
Version:   1.4.1 (pinned)
License:   MIT
Copyright: Copyright 2025 Mattt (https://mat.tt)
Role:      Server-Sent Events client used by swift-huggingface for
           streaming Hugging Face Hub responses.

Copyright 2025 Mattt (https://mat.tt)

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.


----------------------------------------------------------------------------
swift-huggingface
----------------------------------------------------------------------------


Upstream:  https://github.com/huggingface/swift-huggingface
Version:   0.9.0 (pinned)
License:   Apache License, Version 2.0
Copyright: (c) Hugging Face
Role:      Hugging Face Hub API client used by swift-transformers for model
           downloads.

Full license text: https://www.apache.org/licenses/LICENSE-2.0


----------------------------------------------------------------------------
swift-jinja
----------------------------------------------------------------------------


Upstream:  https://github.com/huggingface/swift-jinja
Version:   2.4.1 (pinned)
License:   Apache License, Version 2.0
Copyright: (c) Hugging Face
Role:      Jinja templating engine — renders the Qwen chat template used to
           prompt the correction model.

Full license text: https://www.apache.org/licenses/LICENSE-2.0


----------------------------------------------------------------------------
swift-asn1
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-asn1
Version:   1.7.1 (pinned)
License:   Apache License, Version 2.0
Copyright: Copyright (c) 2019-2025 Apple Inc. and the SwiftASN1 project
           authors
Role:      ASN.1 parsing, a dependency of swift-crypto's certificate
           handling in the Hugging Face Hub download stack.

Full license text: https://www.apache.org/licenses/LICENSE-2.0

NOTICE (reproduced per Apache License 2.0 section 4(d)):

                            The SwiftASN1 Project
                            =====================

Please visit the SwiftASN1 web site for more information:

  * https://github.com/apple/swift-asn1

Copyright 2022 The SwiftASN1 Project

The SwiftASN1 Project licenses this file to you 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:

  https://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.

Also, please refer to each LICENSE.txt file, which is located in
the 'license' directory of the distribution file, for the license terms of the
components that this product depends on.

---

This product contains derivations of various scripts from SwiftNIO.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/apple/swift-nio
    
---

This product contains derivations of various scripts from Swift OpenAPI Generator.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/apple/swift-openapi-generator


----------------------------------------------------------------------------
swift-atomics
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-atomics
Version:   1.3.1 (pinned)
License:   Apache License v2.0 with Runtime Library Exception
Copyright: Copyright (c) 2020-2025 Apple Inc. and the Swift project authors
Role:      Low-level atomic operations, a dependency of swift-nio and
           swift-collections.

Full license text: https://www.apache.org/licenses/LICENSE-2.0 plus the
Swift Runtime Library Exception: https://swift.org/LICENSE.txt


----------------------------------------------------------------------------
swift-collections
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-collections
Version:   1.6.0 (pinned)
License:   Apache License v2.0 with Runtime Library Exception
Copyright: Copyright (c) 2021-2026 Apple Inc. and the Swift project authors
Role:      Additional data structures (OrderedCollections), used by
           swift-transformers' Hub download layer.

Full license text: https://www.apache.org/licenses/LICENSE-2.0 plus the
Swift Runtime Library Exception: https://swift.org/LICENSE.txt


----------------------------------------------------------------------------
swift-crypto
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-crypto
Version:   4.5.1 (pinned)
License:   Apache License, Version 2.0
Copyright: Copyright 2019 The SwiftCrypto Project
Role:      Cryptography (hashing/TLS support), a dependency of the Hugging
           Face Hub download stack.

Full license text: https://www.apache.org/licenses/LICENSE-2.0

NOTICE (reproduced per Apache License 2.0 section 4(d)):

                            The SwiftCrypto Project
                            =======================

Please visit the SwiftCrypto web site for more information:

  * https://github.com/apple/swift-crypto

Copyright 2019 The SwiftCrypto Project

The SwiftCrypto Project licenses this file to you 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:

  https://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.

Also, please refer to each LICENSE.<component>.txt file, which is located in
the 'license' directory of the distribution file, for the license terms of the
components that this product depends on.

-------------------------------------------------------------------------------

This product contains test vectors from Google's wycheproof project.

  * LICENSE (Apache License 2.0):
    * https://github.com/C2SP/wycheproof/blob/31387e2cd596587c859c611027b6a44d2e2b65ff/LICENSE
  * HOMEPAGE:
    * https://github.com/google/wycheproof

---

This product contains a derivation of various files from SwiftNIO.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/apple/swift-nio


----------------------------------------------------------------------------
swift-nio
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-nio
Version:   2.101.3 (pinned)
License:   Apache License, Version 2.0
Copyright: Copyright 2017, 2018 The SwiftNIO Project
Role:      Networking event loop, a dependency of the Hugging Face Hub
           download stack.

Full license text: https://www.apache.org/licenses/LICENSE-2.0

NOTICE (reproduced per Apache License 2.0 section 4(d)):

                            The SwiftNIO Project
                            ====================

Please visit the SwiftNIO web site for more information:

  * https://github.com/apple/swift-nio

Copyright 2017, 2018 The SwiftNIO Project

The SwiftNIO Project licenses this file to you 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:

  https://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.

Also, please refer to each LICENSE.<component>.txt file, which is located in
the 'license' directory of the distribution file, for the license terms of the
components that this product depends on.

-------------------------------------------------------------------------------

This product is heavily influenced by Netty.

  * LICENSE (Apache License 2.0):
    * https://github.com/netty/netty/blob/4.1/LICENSE.txt
  * HOMEPAGE:
    * https://netty.io

---

This product contains NodeJS's llhttp.

  * LICENSE (MIT):
    * https://github.com/nodejs/llhttp/blob/1e1c5b43326494e97cf8244ff57475eb72a1b62c/LICENSE-MIT
  * HOMEPAGE:
    * https://github.com/nodejs/llhttp

---

This product contains "cpp_magic.h" from Thomas Nixon & Jonathan Heathcote's uSHET

  * LICENSE (MIT):
    * https://github.com/18sg/uSHET/blob/c09e0acafd86720efe42dc15c63e0cc228244c32/lib/cpp_magic.h
  * HOMEPAGE:
    * https://github.com/18sg/uSHET

---

This product contains "sha1.c" and "sha1.h" from FreeBSD (Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project)

  * LICENSE (BSD-3):
    * https://opensource.org/licenses/BSD-3-Clause
  * HOMEPAGE:
    * https://github.com/freebsd/freebsd-src

---

This product contains a derivation of Fabian Fett's 'Base64.swift'.

  * LICENSE (Apache License 2.0):
    * https://github.com/swift-extras/swift-extras-base64/blob/b8af49699d59ad065b801715a5009619100245ca/LICENSE
  * HOMEPAGE:
    * https://github.com/fabianfett/swift-base64-kit

---

This product contains a derivation of "XCTest+AsyncAwait.swift" & "StructuredConcurrencyHelpers" from AsyncHTTPClient.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/swift-server/async-http-client

---

This product contains a derivation of "_TinyArray.swift" from SwiftCertificates.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/apple/swift-certificates

---

This product contains a derivation of the mocking infrastructure from Swift System.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/apple/swift-system

---

This product contains a derivation of "TokenBucket.swift" from Swift Package Manager.

  * LICENSE (Apache License 2.0):
    * https://www.apache.org/licenses/LICENSE-2.0
  * HOMEPAGE:
    * https://github.com/swiftlang/swift-package-manager


----------------------------------------------------------------------------
swift-system
----------------------------------------------------------------------------


Upstream:  https://github.com/apple/swift-system
Version:   1.7.4 (pinned)
License:   Apache License v2.0 with Runtime Library Exception
Copyright: Copyright (c) 2020-2024 Apple Inc. and the Swift System project
           authors
Role:      Low-level system call wrappers, a dependency of swift-nio.

Full license text: https://www.apache.org/licenses/LICENSE-2.0 plus the
Swift Runtime Library Exception: https://swift.org/LICENSE.txt


----------------------------------------------------------------------------
yyjson
----------------------------------------------------------------------------


Upstream:  https://github.com/ibireme/yyjson
Version:   0.12.0 (pinned)
License:   MIT
Copyright: Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
Role:      JSON parsing (C library), a dependency of swift-transformers'
           Hub layer.

MIT License

Copyright (c) 2020 YaoYuan <ibireme@gmail.com>

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.


================================================================================
PART 3 — Build-time-only tools (not distributed)
================================================================================


The following are used only to build the Part 1 lexicon data files during
development (labs/typofree/tools/) or to build the app itself. None of their
code or data is included in, or distributed with, the TypoFree app bundle.

- opencc-python-reimplemented (github.com/yichen0831/opencc-python),
  Apache License 2.0, Copyright (c) Yichen Huang (Eugene) — performs the
  Traditional-to-Simplified conversion step in the lexicon build. Uses
  dictionary data from BYVoid's OpenCC (github.com/BYVoid/OpenCC),
  Apache License 2.0.
- pypinyin (github.com/mozillazg/python-pinyin), MIT, Copyright (c) 2016
  mozillazg, 闲耘 — used by the evaluation-corpus generation tooling.
- uv (github.com/astral-sh/uv), dual-licensed Apache License 2.0 / MIT,
  Copyright Astral Software Inc. — Python package/virtual-environment
  manager used to run the build scripts above.


================================================================================
PART 4 — Model weights downloaded by the user at runtime
================================================================================


- Qwen2.5-1.5B-Instruct-4bit / Qwen3-0.6B-4bit (mlx-community conversions of
  Qwen/Qwen2.5-1.5B-Instruct and Qwen/Qwen3-0.6B, huggingface.co/Qwen),
  Apache License 2.0, Copyright 2024 Alibaba Cloud — downloaded on demand
  from the Hugging Face Hub the first time on-device correction runs; the
  weights are never bundled inside the app itself. See Settings ▸ 后端 for
  the two RAM-tiered presets.
