# Collect all inputs from Documentation Center

Is it possible to collect all inputs programmatically from every function in the Documentation Center in a list and wrap them in a HoldComplete?

My case: With some fundamental functions modified, I would like run a test of all functions to see what function will fail to execute.

• Use NotebookImport on Documentation directory restricting it to InputCells. It is quite slow but you only have to do it once. – Kuba Jul 9 '16 at 9:35
• keep in mind that some examples are meant to fail to show some issues or are just Messages related. – Kuba Jul 9 '16 at 9:36
• @Kuba thanks for the hint. In this case I may try to avoid importing the inputs from "possible issues", etc – vapor Jul 9 '16 at 9:38
• You can but I bet it is not the only section where messages are generated. – Kuba Jul 9 '16 at 9:39

You may use the "DocumentationExampleInputs" property of the "WolframLanguageSymbol" entity or WolframLanguageData function.

With "WolframLanguageSymbol" entity:

EntityValue[Entity["WolframLanguageSymbol", "Round"], "DocumentationExampleInputs"]


For more than one at a time you can use "EntityAssociation" to have the entities as keys.

EntityValue[RandomEntity["WolframLanguageSymbol", 2], "DocumentationExampleInputs",
"EntityAssociation"]


Similarly for WolframLanguageData function:

WolframLanguageData["Round", "DocumentationExampleInputs"]


EntityValue[WolframLanguageData[], "DocumentationExampleInputs",