Add a document regarding type detection.