Earlier book similar to George Orwell's 1984 by a female author?

Awhile ago, I read about a book that has striking similarities to George Orwell’s Nineteen Eighty Four, only it came years earlier and was written by a woman. What I read alleged that the female author wasn’t taken seriously to have those ideas, and her book languished in obscurity since. It wasn’t clear to me if Orwell took deliberate influence (or even ripped-off) from her, or if it was coincidence, but does anyone know which book I’m referring to?

The topic came up in conversation when my daughter showed me Herland, and I was trying to recall. Thanks much.

Could be Swastika Night.

Under the author’s name, Wiki says:

Sounds more like a few general themes in common - all based on what was actually happening in the USSR in the 30s - without any possible direct influence, but I admit I’ve never read the book.

I’ve read that Ayn Rand – a Russian emigre – also wrote an early novel taking up the same theme, but I don’t know how similar it is to 1984.

Are you thinking of Anthem?

It’s not very similar at all.

Exapno, Swastika Night was exactly the one I was thinking of. Thanks awesomely. Kind of funny that it was published a year after the title of Nineteen Eighty Four.