From philosophical logic to linguistics