Anthropic's Claude Used to Rewrite Chardet Library from LGPL to MIT License
Key Takeaways
- ▸Chardet library maintainers used Claude AI to rewrite the entire codebase to change from LGPL to MIT license
- ▸This approach offers a potential solution for open-source projects wanting to change licenses without obtaining permission from all historical contributors
- ▸The move raises important questions about AI-generated code, copyright law, and the originality of AI rewrites in the context of open-source licensing
Summary
According to reports from the open-source community, the maintainers of chardet, a popular character encoding detection library, have used Anthropic's Claude AI assistant to rewrite the entire codebase to change its license from LGPL (Lesser General Public License) to the more permissive MIT license. This approach represents a novel use case for large language models in open-source software maintenance, where AI is employed not just for code generation but for wholesale license migration projects.
The LGPL to MIT license change is significant in the open-source world, as MIT is considered more permissive and business-friendly, allowing proprietary software to incorporate the code without the copyleft requirements of LGPL. Using an AI to perform this rewrite addresses a common challenge in open-source projects: changing licenses typically requires either obtaining permission from all contributors or rewriting the code entirely to avoid copyright issues.
This development raises interesting questions about AI-generated code, copyright, and licensing. While the practical outcome achieves the goal of relicensing, it also opens discussions about whether AI-generated rewrites constitute sufficiently original work to sidestep existing copyright claims, and whether this approach could become a standard practice for projects seeking to change licenses. The chardet project's decision may set a precedent for other open-source maintainers facing similar licensing constraints.
- MIT licensing is more permissive than LGPL, making the code easier to incorporate into proprietary software products



