Searching code based on learned programming construct patterns and NLP similarity
Abstract
An approach is provided to ingest software source code files into a question/answering (QA) system. During ingestion, source code blocks are classified to identify one or more constructs in the blocks as being domain-specific. Relationships between the blocks are then mapped. Software compliance regulations are ingested into the QA system. Using the QA system, a source code file is analyzed for compliance to the software compliance regulations. The analysis identifies code sections within the source code file as being domain-specific and subject to the ingested set of software compliance regulations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method implemented by an information handling system that includes a memory having executable instructions stored thereon and a processor, where the processor executes the instructions to perform the method steps, the method steps comprising: building a domain-specific knowledge base of a domain by ingesting a plurality of source code files into the domain-specific knowledge base utilized by a question/answering (QA) system, wherein the ingesting further comprises: ingesting a set of software compliance regulations corresponding to the domain into the domain-specific knowledge base; selectin
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,197,895 B2 | Dialogue- and machine learning-facilitated code development | 2025 | 0 |
References Cited — Backward Prior Art (21)
Non-Patent Literature (5)
- "List of IBM Patents or Patent Applications Treated as Related," Letter from Leslie A. Van Leeuwen, Mar. 11, 2016, 1 page.
- Allen et al., "Searching Code Based on Learned Programming Construct Patterns and NLP Similarity," U.S. Appl. No. 14/665,089, filed Mar. 23, 2015, 45 pages.
- Cox, "Regular Expression Matching with a Ingram Index or How Google Code Search Worked," Jan. 2012, 8 pages.
- Fry et al. "Analysing source code: looking for useful verb-direct object pairs in all the right places," The Institute of Engineering and Technology 2008, IET Software, 2 (1), Sep. 2007, pp. 27-36.
- Kimmig et al., "Querying Source Code with Natural Language," ASE '11 Proceedings of the 2011 26th IEEE/ACM International Conference on Automated Software Engineering, Lawrence, KS, Nov. 2011, 4 pages.