I am working on a software project that allows users to formulate logical statements in order to filter data. E. g. a user might set their filter as: (size = 100 and weight < 50) or (area > 200 and weight < 100) or color = blue
which would roughly translate to Filter for all objects with a size equal to 100 and a weight less than 50 - or an area larger than 200 and a weight less than 100 - or simply any blue object.
Is there a way to make nested conjunctions and parenthesis easy to read? Is there a general way to do this? I am looking for rules to convert the logical statement to natural language.