I'm working on a Python app that reads the sec.gov quarterly reports documents and store the parsed information in a database.
In many quarterly and annual reports there are custom XBRL tags that clearly refer to a standard GAAP item.
For example, in the following 10-Q, in the Liabilities section there is an entry "Notes payable – floor plan" that is tagged as onew:NotePayableFloorPlan. This is clearly a Short-Term Debt but there is no information about it in the calculation or presentation XML file that classify it. The only information I was able to find is that this is part of the LiabilitiesCurrentAbstract concept, but this is a very generic classification.
How do I automatically find out the correspondence between custom taxonomy and standard accounting concepts ?
https://www.sec.gov/ix?doc=/Archives/edgar/data/1772921/000114036122028384/brhc10040150_10q.htm

I suggest looking into the work by Charles Hoffman, CPA, who contributed a taxonomy of fundamental accounting concepts (FAC) together with a mapping (provided as an XBRL linkbase) from extension concepts used by filers and sanity-check rules, all machine-automatable.
Maybe a good place to start is here, and there are links to the actual mappings and rules:
http://xbrlsite.azurewebsites.net/2021/library/FundamentalAccountingConcepts.pdf