Text this: Optimal Inspection Models with Their Applications