Aspirin is considered an analgesic because of its pain-relieving properties.