Browser Language Detection via URL Pattern Matching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Users face difficulties in finding and selecting web pages in desired text languages on global websites due to inconsistent location and display methods of language links, leading to increased time and effort in accessing the correct language version.
Innovation Solution
A browser program that uses a table to map text languages to character strings in URLs, allowing users to designate a language and search for corresponding URLs in the source code of web pages, enabling efficient display of the desired language version without requiring server-side URL storage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If a server stores URLs of web pages in association with text languages, then users can quickly access web pages in desired languages, but device configuration and device cost increase
Solution Approach 1:
The browser automatically extracts language information from web page source code and performs language selection without requiring a dedicated server to store and manage URL-language mappings. The system serves itself by utilizing the existing web page content to identify available languages through pattern recognition of language codes in URLs.
Solution Approach 2:
The browser acts as an intermediary between the user and the web server, inserting language detection and selection logic client-side. Instead of requiring the server to provide language selection services, the browser mediates the process by automatically analyzing web page source code to extract language information and construct appropriate URLs.
2Productivity
If a dedicated server is provided to store URL-language mappings, then language selection efficiency improves, but device cost increases
Solution Approach 1:
The browser performs language detection and URL construction autonomously using built-in functionality and pattern matching algorithms. No external server infrastructure is required to support language selection, as the browser itself provides the service by analyzing web page source code and identifying language-specific URLs through programmed patterns.
Solution Approach 2:
The browser is designed to handle multiple functions including language detection, URL analysis, and automatic navigation. By making the browser multi-functional, the system eliminates the need for dedicated language selection servers, as the browser itself performs all necessary operations to enable efficient language-specific web page access.
3Ease of operation
If language links are manually placed on home pages, then users can select desired language versions, but users spend excessive time finding and selecting links due to inconsistent locations and display methods
Solution Approach 1:
The manual mechanical process of users searching for and clicking language links is replaced with an automated computational system. The browser automatically analyzes web page source code, identifies language codes embedded in URLs through pattern recognition, and directly navigates to the desired language version without requiring user interaction with manually placed links.
Solution Approach 2:
The browser performs preliminary analysis of the web page source code to identify available language versions before the user needs to select a language. By pre-extracting language information from the source code and preparing language-specific URLs, the system eliminates the time users would otherwise spend searching for language links on the rendered page.
Data Source
AI summary
A non-transitory computer-readable recording medium having recorded thereon a browser program running on a computer including a storage unit storing a table showing correspondences between text languages of web pages and character strings used in URLs to indicate the text languages, the program causing the computer to perform: receiving a designation of a URL; acquiring information indicating a text language designated by a user; determining whether the designated URL includes a top-level domain “com” or the top-level domain “com” with a slash “/” added thereto; acquiring, when determination is affirmative, source code of a web page indicated by the designated URL, and searching the source code for a URL including a character string corresponding to the designated text language; and, displaying, when the URL is found, a web page indicated by the found URL, and, displaying, when the URL is not found, the web page indicated by the designated URL.


