An ideological test for gun ownership

Private organizations such as the SPLC and government agencies such as the FBI and the Department of Homeland Security already monitor the online activities of violent extremists. How hard would it be to collect that information in a database that could be used to check whether a would-be gun buyer harbors views that make him prone to murder?