// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_HTML_BASED_USERNAME_DETECTOR_VOCABULARY_H_ #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_HTML_BASED_USERNAME_DETECTOR_VOCABULARY_H_ #include <array> #include <string_view> namespace autofill { // Words that certainly point to a non-username field. // If field values contain at least one negative word, then the field is // excluded from the list of possible usernames. inline constexpr auto kNegativeLatin = …; inline constexpr auto kNegativeNonLatin = …; // Translations of "username". inline constexpr auto kUsernameLatin = …; inline constexpr auto kUsernameNonLatin = …; // Translations of "user". inline constexpr auto kUserLatin = …; inline constexpr auto kUserNonLatin = …; // Words that certainly point to a username field, if they appear in developer // value. They are technical words, because they can only be used as variable // names, and not as stand-alone words. inline constexpr auto kTechnicalWords = …; // Words that might point to a username field.They have the smallest priority // in the heuristic, because there are also field attribute values that // contain them, but are not username fields. inline constexpr auto kWeakWords = …; } // namespace autofill #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_HTML_BASED_USERNAME_DETECTOR_VOCABULARY_H_