# OCaml: AI-friendly with conditions

> AI-assisted contributions are judged on merit. Contributors must have written or reviewed every part, take responsibility for provenance, and disclose significant AI-generated code, PR descriptions or comments with the tool used. Bug reports should contain only human-verified information, with any LLM content clearly separated.

- What it is: A functional programming language with an emphasis on expressiveness and safety. (Programming language)
- Homepage: https://ocaml.org/
- Repository: https://github.com/ocaml/ocaml
- Overall stance: AI-friendly with conditions (Mostly friendly). AI-assisted contributions are accepted with extra rules, such as disclosing AI use, or AI is banned for issues or written text.
- Last classified: 2026-10-09 (manual review, high confidence)
- Policy last changed: 2026-10-09
- Web page: https://areweaifriendly.com/projects/ocaml/

## Policy by area

- **Code contributions**: AI-friendly with conditions (AI use must be disclosed; Contributor takes full responsibility; A human must review the output; Output must be license-compatible)
- **Issues & bug reports**: AI-friendly with conditions (AI use must be disclosed; A human must review the output)
- **AI-written text**: AI-friendly with conditions (AI use must be disclosed; A human must review the output)

## In their own words

- Code contributions: "We ask that you have either written, or read and reviewed yourself, every part of your contribution. You are responsible for its quality." (https://github.com/ocaml/ocaml/blob/trunk/AI.md)
- Code contributions: "When you submit code, however it was written, you take responsibility for its provenance." (https://github.com/ocaml/ocaml/blob/trunk/AI.md)
- AI-written text: "If a significant portion of your code, PR description, review comments or messages has been AI-generated, this must be disclosed, stating which tool was used and for what." (https://github.com/ocaml/ocaml/blob/trunk/AI.md)
- Issues & bug reports: "a bug report should be to the point and contain only human-verified information." (https://github.com/ocaml/ocaml/blob/trunk/AI.md)
- Issues & bug reports: "Moreover, mixing human and LLM-generated contents in the same report without a clear separation should be imperatively avoided." (https://github.com/ocaml/ocaml/blob/trunk/AI.md)

## Sources

- [OCaml guidelines for AI-assisted contributions](https://github.com/ocaml/ocaml/blob/trunk/AI.md), fetched 2026-10-09
