The selection and design of charge integration methods remain an outstanding challenge in materials chemistry. In complex materials like electrides, this challenge is amplified by the small charge and complex shape of electride wave functions. For these reasons, popular integration methods, such as the Bader method, usually fail to assign any charge to the bare electrons in an electride. To address this challenge, we developed an algorithm that instead partitions the charge based on the electron localization function (ELF), a popular scheme for visualizing chemically important features in molecules and solids. The algorithm uses Bader segmentation of the ELF to find the electride electrons and Voronoi segmentation of the ELF to identify atoms. We apply this method, "BadELF", to the quantification of atomic radii and oxidation states in both ionic compounds and electrides. For ionic compounds, we find that the BadELF method yields radii that agree closely with Shannon crystal radii, while the oxidation states agree closely with the Bader method. When they are applied to electrides, however, only the BadELF algorithm yields chemically meaningful charges. We argue that the BadELF method provides a useful strategy to identify electrides and obtain new insight into their most essential property: the quantity of electrons within them.