The programmatic equivalent of UX Writing is API Design. The words that you use to describe your API enable conversations between software and people - it’s just a bit more structured and mechanical. That’s why technical writers are uniquely suited to assist technical teams in doing API design, especially when an API First design approach is being followed.
The above is the abstract from my talk When documenting is designing: How to assist API design as a technical writer from Write the Docs Prague.
Here are the slides. And here is the video: