Class WikipediaClient

java.lang.Object
org.episteme.social.linguistics.loaders.WikipediaClient

public final class WikipediaClient extends Object
Modern client for interfacing with online linguistic resources like Wikipedia. Useful for fetching large-scale corpora for analysis.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • fetchArticleText

      public static String fetchArticleText(String title) throws IOException
      Fetches the plain text content of a Wikipedia article by title.
      Parameters:
      title - The title of the article.
      Returns:
      The plain text content or an empty string if not found.
      Throws:
      IOException - If a network error occurs.