Codifying rules from online documentation

    公开(公告)号:US11150897B1

    公开(公告)日:2021-10-19

    申请号:US16836447

    申请日:2020-03-31

    Abstract: Techniques for generating rules from documentation are described. For example, a method for generating rules may include generating one or more templates containing patterns and anti-patterns from code of one or more documents, wherein a pattern captures a good coding practice as detailed in the documents and an anti-pattern is a proper subset of a pattern that does not include a construct described in the documents as being a recommended and/or required usage; constructing one or more graphs from the one or more templates; mining the constructed one or more graphs to find target sub-graphs which do not contain bugs, wherein a bug occurs when an anti-pattern matches, but a pattern does not match; comparing the target sub-graphs to a representative dataset to remove target sub-graphs that violate good usage; and codifying the sub-graphs that represent good usage.

Patent Agency Ranking