resolve_name_value_candidates

in lib/twitter_cldr/shared/property_normalizer.rb [45:72]


      def resolve_name_value_candidates(property_name_candidates, value_candidates)
        property_name_candidates.each do |name_candidate|
          value_candidates.each do |value_candidate|
            if cased_property_name = resolve_property_name_case(name_candidate)
              if value_candidate
                cased_property_value = resolve_property_value_case(
                  cased_property_name, value_candidate
                )

                if cased_property_value
                  return [
                    cased_property_name, cased_property_value
                  ]
                end
              else
                if database.include?(cased_property_name, value_candidate)
                  return [
                    cased_property_name, value_candidate
                  ]
                end
              end
            end
          end
        end

        []
      end