Is there a way to learn grammar through LibreOffice Writer?

And I’m not talking about a grammar checker. I just want to have a guide that teaches grammar.

By the way, I have LibreOffice Writer 6.4.7.2

Thanks in advance!

Buy a good book about the desired language.