
\documentclass[12pt]{article}
\usepackage[T2A,OT1]{fontenc}
\usepackage[default]{cantarell}
\usepackage[a4paper, top=20mm, bottom=20mm, left=20mm, right=20mm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[russian, english]{babel}
\usepackage{tabu}
\usepackage{hyperref}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage[normalem]{ulem}
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}
\usepackage{setspace}
\onehalfspacing
\author{Artyom Bologov \href{mailto:regex-pronouns@aartaka.me}{(email)}}
\date{\today}
\title{Regex Pronouns?}
\makeatletter
\def\endenv{\expandafter\end\expandafter{\@currenvir}}
\makeatother
\begin{document}
\maketitle

I have a friend who lists
\href{https://en.pronouns.page/vi/vim}{vi/vim}
as vis pronouns.
It's obviously a programmer joke, but quite an illuminating one.
vi/vim pair is conventionally contracted to \verb|vi(m)| shortcut pattern.
Why not apply that regex-y approach to other pronouns?

The syntax I'm suggesting is not necessarily PCRE or POSIX regex.
I'm rather suggesting a sloppy soup of PCRE, UNIX wildcards, and English.
Kind of like what programmers do when they talk about *nix, GNU/Linux, or jpe?g.

Binary pronouns are a bad example: \verb|/h(e|im)/| might
\href{https://en.wikipedia.org/wiki/Heim}{sound like home},
but it's a pain to type.
Another binary pronoun pair regex that I can come up with is a horrifying \verb|/s?her?/|.
Not only it looks out of this world, it's also bad at describing the structure of the pronouns.
Is it she? her? sher? he?
So messy.

Other, less widespread pronouns are much better as regex pronouns:

\begin{itemize}\item Aforementioned vi/vim as \verb|/vim?/|
\item \verb|/the(y|m)/|, \verb|/xe(y|m)/|
\item \verb|/its?/|
\item or the "any pronoun" person as \verb|*|
\end{itemize}

Neat, huh?
My pronouns officially are \verb|/t?he(y|m)?/| now, what are yours?

Update: thanks to many people
\href{https://reddit.com/r/programming/comments/194xlv2/regex_pronouns}{on r/programming subreddit},
This post now has better regex start/end markers and better expressions for where I had unoptimized syntax.
And to
\href{https://reddit.com/r/programminghorror/comments/198arxb/regex_pronouns_an_utterly_wrong_application_of}{people of r/programminghorror},
for productive feedback.


\par\noindent\rule{\textwidth}{0.4pt}
\href{https://creativecommons.org/licenses/by/4.0}{CC-BY 4.0} 2022-2026 by Artyom Bologov (aartaka,)
\href{https://codeberg.org/aartaka/pages/commit/a91befa}{with one commit remixing Claude-generated code}.
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
\end{document}
