Enforce deterministic results
masterThe language detection algorithm is non-deterministic. For short or ambiguous text, results may vary between runs. To ensure consistent, reproducible results, set the DetectorFactory.seed before performing any detection.
from langdetect import DetectorFactory
DetectorFactory.seed = 0