FirmenData LogoFirmendata
← Back to the blog

How we assign companies to an industry

The commercial register does not record an industry. So that you can still search by industry, we assign every company one or more codes from WZ 2025, the German Federal Statistical Office’s classification of economic activities (the national version of NACE). This post summarises how that works.

What we read about the company

The input is always text in which the company describes what it does. We use up to three sources, in this order:

  1. Website: one to three sentences about the business, taken from the company’s own homepage. It is usually the most current and the most concrete.
  2. Annual accounts: a short description of the business from the latest published financial statements.
  3. Commercial register: the registered business purpose. It is often brief legal wording, so it serves as a fallback only.

When the sources disagree, the higher one wins. Without any text, we assign no code.

The codes and their keywords

WZ 2025 has five levels, from section (such as K) down to subclass (such as 62.10.1, development and programming of websites). The official keyword index assigns around 36,000 concrete activities to the codes; for 62.10.1 these include “Homepagedesign” and “Erstellen von Internetseiten (Webdesign)”. These keywords say more than the often abstract code titles, so both steps work with them.

Step 1: a shortlist by text similarity

A multilingual embedding model turns the company description and every keyword, together with the title of its division, into vectors. For each code, the keyword closest to the description counts. The 30 most similar codes make the shortlist.

Step 2: a language model picks the codes

A language model reads all available sources and the 30 candidates with their keywords. It picks at most three codes, ranks them and gives each a score from 0 to 100. It may only name codes from the shortlist and has to answer in a fixed format, so it cannot invent codes.

  • The first code is the main industry shown on the company page and used in search.
  • We keep further codes only from 75 points up, meaning at least one keyword closely matches what the company does.

Both models run on our own servers.

How we check the quality

Before we switch models, we measure the new one against a fixed test set. It combines real registered business purposes with test texts whose codes are known: companies with one activity, with several related activities and with several unrelated ones. Among other things, we compare how often the correct code comes first and at which rank it lands on average.

Limits

The assignment is derived automatically. It is not an official classification by the Federal Statistical Office or any other authority. It is least reliable when only a generic business purpose is available, and for holding companies whose own activity differs from that of their subsidiaries.

Frequently asked questions

Where does a company’s WZ code on FirmenData come from?
We derive it ourselves from the company’s website, its latest annual accounts and its registered business purpose. An embedding model builds a shortlist of 30 codes, and a language model picks up to three of them.
Is this the official classification?
No. The commercial register does not record an industry. The assignment is derived automatically and can differ from how authorities classify the company.
Why does a company have several codes?
The first code is the main industry. We show further codes only when the company clearly also works in those areas.