# Xarray: AI-friendly with conditions

> AI-generated code is accepted if the submitter has read, tested and fully understands every change; large AI-assisted changes should be discussed in an issue first. PR descriptions, issue comments and review replies must be in the contributor's own words, with AI allowed only to polish language.

- What it is: N-dimensional labeled arrays and datasets in Python. (Library)
- Homepage: https://xarray.dev/
- Repository: https://github.com/pydata/xarray
- 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/xarray/

## Policy by area

- **Code contributions**: AI-friendly (Contributor takes full responsibility; A human must review the output)
- **Issues & bug reports**: Not AI-friendly (Only minor help (autocomplete, grammar))
- **AI-written text**: Not AI-friendly (Only minor help (autocomplete, grammar))

## In their own words

- Code contributions: "this policy applies regardless of whether the code was written by hand, with AI assistance, or generated entirely by an AI tool." (https://github.com/pydata/xarray/blob/main/doc/contribute/ai-policy.md)
- Code contributions: "You must have personally reviewed and understood all changes before submitting." (https://github.com/pydata/xarray/blob/main/doc/contribute/ai-policy.md)
- Issues & bug reports: "PR descriptions, issue comments, and review responses must be your own words." (https://github.com/pydata/xarray/blob/main/doc/contribute/ai-policy.md)
- AI-written text: "Do not paste AI-generated text as comments or review responses." (https://github.com/pydata/xarray/blob/main/doc/contribute/ai-policy.md)
- AI-written text: "Using AI to improve the language of your writing (grammar, phrasing, spelling, etc.) is acceptable." (https://github.com/pydata/xarray/blob/main/doc/contribute/ai-policy.md)

## Sources

- [Xarray AI Usage Policy](https://github.com/pydata/xarray/blob/main/doc/contribute/ai-policy.md), fetched 2026-10-09
