Format from extension unless contradicted

Ingence takes a file to be in the format its extension names, when the extension means only one format. It does not when the contents begin the way another format does. A container the format is built on, such as HDF5 or ZIP, does not count.

format_from_extension_unless_contradicted version 1

  • Kind of rule: What files are (classifies). Says what a file or a folder is, by placing it in a class.

  • What it concludes: a class

  • Reasoning: defeasible. A conclusion is usually right, and is retracted when a rule it names concludes against it.

  • What it reads: one file at a time

Is it available in this version?

Yes. The engine runs it.

What would defeat it

The engine withdraws what this rule concludes about something when any of these rules concludes about the same thing:

  • content_contradicts_extension: Ingence flags a file when its contents begin the way one format does and its extension names another. Containers that other formats are built on, such as PDF, HDF5 or ZIP, do not count.

Parameters

Parameter

Shipped value

May be

What it does

theme_kind

"format"

text

The axis an extension is matched on, as the shipped rule declares it: an extension slot may match a format and nothing else.