Rendering Freestyle through Transparent Objects

So, is there a way to set up simple logic for a Freestyle render, like, if object has transparency (or by specific material name), render lines behind it? I know Freestyle has a python scripting mode, but what can I do with it?

In my current case, I have something like a glass container with liquid in it and want the glass outline and the liquid with in it to both have lines rendered. I could go the cheap route and make the liquid material part of the glass, but I want to show a little depth. I know the layer of glass where the liquid is touching can’t be seen in reality, but this a stylized piece.