Text this: A simple algorithm to assess structural performance by PBSD method