Well, if you always resolve to never enter a township without the county name or a city without the township and county, you'll always know which it is by how many nested names you have. For example, if you're entering the city of Columbiana in Ohio, never enter it as "Columbiana, Ohio", always "Columbiana, Fairfield, Columbiana, Ohio". That way, when you see it as just "Columbiana, Ohio", you know that it means the county.
And if there is no city and township by the same name, you can skip the township name and enter it as "Columbiana, Columbiana, Ohio". There should be no confusion because there is no Columbiana township.