Function to decide whether to use a/an?

I was wondering whether or not there’s a function in HuggingFace somewhere to decide whether to use a or an before a noun (an apple, a desk, etc)?

There’s an implementation here: grammar - Verify correct use of "a" and "an" in English texts - Python - Stack Overflow, but it’d be nice if HuggingFace had something like this supported?

(If not, I’d be happy to incorporate this into the core library for example… :slight_smile:)