close
Sometimes I have sense, sometimes I have none;
Sometimes I offend, then you bid me begone;
Sometimes I am merry, sometimes I am sad;
Sometimes I am good, sometimes very bad;
However, to make me, I cost many brains,
Much labour, much thought, and a great deal of pains.
esp: internet
quite close, the actual answer is supposed to be books
ismu: justice not bad, actually.