If $Y \subset X$ is a subvariety that is possibly singular, where $X$ is a smooth projective variety, when is it true that the hard Lefschetz theorem holds, when we study the cohomology of $Y$?