├── LICENSE ├── Makefile ├── README.md ├── autogenerate-configs.php ├── dist ├── lib │ ├── commons-cli-1.2.jar │ ├── commons-codec-1.6.jar │ ├── commons-collections-3.2.1.jar │ ├── commons-compress-1.8.1.jar │ ├── commons-io-1.4.jar │ ├── commons-jxpath-1.3.jar │ ├── commons-lang-2.5.jar │ ├── commons-lang3-3.3.2.jar │ ├── jaxb-impl-2.2.5.jar │ ├── jopt-simple-4.3.jar │ ├── jsoup-1.6.3.jar │ ├── junit-3.8.1.jar │ ├── log4j-1.2.14.jar │ ├── log4j-api-2.1.jar │ ├── log4j-core-2.1.jar │ ├── log4j-slf4j-impl-2.1.jar │ ├── ptk-common-2.0.0.jar │ ├── rats-runtime-1.15.0.jar │ ├── slf4j-api-1.7.7.jar │ ├── stax-api-1.0-2.jar │ ├── stax2-api-3.1.1.jar │ ├── swc-engine-2.0.0.jar │ ├── swc-parser-lazy-2.0.0.jar │ ├── utils-2.0.0.jar │ └── woodstox-core-asl-4.2.0.jar └── wikiforia-1.2.1.jar ├── pom.xml ├── src ├── main │ ├── java │ │ └── se │ │ │ └── lth │ │ │ └── cs │ │ │ └── nlp │ │ │ ├── io │ │ │ ├── LineWriter.java │ │ │ ├── ParallelSplitWriter.java │ │ │ ├── PlainTextWikipediaPageWriter.java │ │ │ ├── SimpleHadoopTextWriter.java │ │ │ ├── SplitWriter.java │ │ │ ├── StringWriter.java │ │ │ ├── Writer.java │ │ │ └── XmlWikipediaPageWriter.java │ │ │ ├── mediawiki │ │ │ ├── model │ │ │ │ ├── Header.java │ │ │ │ ├── Page.java │ │ │ │ ├── Siteinfo.java │ │ │ │ └── WikipediaPage.java │ │ │ └── parser │ │ │ │ ├── MultistreamBzip2XmlDumpParser.java │ │ │ │ ├── SinglestreamXmlDumpParser.java │ │ │ │ └── XmlDumpParser.java │ │ │ ├── pipeline │ │ │ ├── AbstractEmitter.java │ │ │ ├── Emitter.java │ │ │ ├── Filter.java │ │ │ ├── IdentityFilter.java │ │ │ ├── Mapper.java │ │ │ ├── Pipeline.java │ │ │ ├── PipelineBuilder.java │ │ │ ├── PipelinePipeBlock.java │ │ │ ├── Sink.java │ │ │ └── Source.java │ │ │ ├── wikiforia │ │ │ ├── App.java │ │ │ └── Pipeline.java │ │ │ └── wikipedia │ │ │ ├── WikipediaPageType.java │ │ │ ├── lang │ │ │ ├── AbConfig.java │ │ │ ├── AceConfig.java │ │ │ ├── AebConfig.java │ │ │ ├── AfConfig.java │ │ │ ├── AkConfig.java │ │ │ ├── AlnConfig.java │ │ │ ├── AmConfig.java │ │ │ ├── AnConfig.java │ │ │ ├── AngConfig.java │ │ │ ├── AnpConfig.java │ │ │ ├── ArConfig.java │ │ │ ├── ArcConfig.java │ │ │ ├── ArnConfig.java │ │ │ ├── ArqConfig.java │ │ │ ├── ArzConfig.java │ │ │ ├── AsConfig.java │ │ │ ├── AstConfig.java │ │ │ ├── AvConfig.java │ │ │ ├── AvkConfig.java │ │ │ ├── AyConfig.java │ │ │ ├── AzConfig.java │ │ │ ├── AzbConfig.java │ │ │ ├── BaConfig.java │ │ │ ├── BarConfig.java │ │ │ ├── BbcConfig.java │ │ │ ├── BccConfig.java │ │ │ ├── BclConfig.java │ │ │ ├── BeConfig.java │ │ │ ├── BgConfig.java │ │ │ ├── BhConfig.java │ │ │ ├── BhoConfig.java │ │ │ ├── BjnConfig.java │ │ │ ├── BmConfig.java │ │ │ ├── BnConfig.java │ │ │ ├── BoConfig.java │ │ │ ├── BpyConfig.java │ │ │ ├── BqiConfig.java │ │ │ ├── BrConfig.java │ │ │ ├── BsConfig.java │ │ │ ├── BugConfig.java │ │ │ ├── BxrConfig.java │ │ │ ├── CaConfig.java │ │ │ ├── CdoConfig.java │ │ │ ├── CeConfig.java │ │ │ ├── CebConfig.java │ │ │ ├── ChConfig.java │ │ │ ├── CkbConfig.java │ │ │ ├── CoConfig.java │ │ │ ├── CrhConfig.java │ │ │ ├── CsConfig.java │ │ │ ├── CsbConfig.java │ │ │ ├── CuConfig.java │ │ │ ├── CvConfig.java │ │ │ ├── CyConfig.java │ │ │ ├── DaConfig.java │ │ │ ├── DeConfig.java │ │ │ ├── DiqConfig.java │ │ │ ├── DsbConfig.java │ │ │ ├── DtpConfig.java │ │ │ ├── DvConfig.java │ │ │ ├── DzConfig.java │ │ │ ├── EglConfig.java │ │ │ ├── ElConfig.java │ │ │ ├── EmlConfig.java │ │ │ ├── EnConfig.java │ │ │ ├── EnglishConfig.java │ │ │ ├── EoConfig.java │ │ │ ├── EsConfig.java │ │ │ ├── EtConfig.java │ │ │ ├── EuConfig.java │ │ │ ├── ExtConfig.java │ │ │ ├── FaConfig.java │ │ │ ├── FfConfig.java │ │ │ ├── FiConfig.java │ │ │ ├── FitConfig.java │ │ │ ├── FoConfig.java │ │ │ ├── FrConfig.java │ │ │ ├── FrcConfig.java │ │ │ ├── FrenchConfig.java │ │ │ ├── FrpConfig.java │ │ │ ├── FrrConfig.java │ │ │ ├── FurConfig.java │ │ │ ├── FyConfig.java │ │ │ ├── GaConfig.java │ │ │ ├── GagConfig.java │ │ │ ├── GanConfig.java │ │ │ ├── GdConfig.java │ │ │ ├── GermanConfig.java │ │ │ ├── GlConfig.java │ │ │ ├── GlkConfig.java │ │ │ ├── GnConfig.java │ │ │ ├── GotConfig.java │ │ │ ├── GrcConfig.java │ │ │ ├── GswConfig.java │ │ │ ├── GuConfig.java │ │ │ ├── GvConfig.java │ │ │ ├── HakConfig.java │ │ │ ├── HawConfig.java │ │ │ ├── HeConfig.java │ │ │ ├── HiConfig.java │ │ │ ├── HifConfig.java │ │ │ ├── HrConfig.java │ │ │ ├── HrxConfig.java │ │ │ ├── HsbConfig.java │ │ │ ├── HtConfig.java │ │ │ ├── HuConfig.java │ │ │ ├── HyConfig.java │ │ │ ├── IaConfig.java │ │ │ ├── IdConfig.java │ │ │ ├── IeConfig.java │ │ │ ├── IgConfig.java │ │ │ ├── IiConfig.java │ │ │ ├── IloConfig.java │ │ │ ├── InhConfig.java │ │ │ ├── IoConfig.java │ │ │ ├── IsConfig.java │ │ │ ├── ItConfig.java │ │ │ ├── IuConfig.java │ │ │ ├── JaConfig.java │ │ │ ├── JutConfig.java │ │ │ ├── JvConfig.java │ │ │ ├── KaConfig.java │ │ │ ├── KaaConfig.java │ │ │ ├── KabConfig.java │ │ │ ├── KbdConfig.java │ │ │ ├── KgConfig.java │ │ │ ├── KhwConfig.java │ │ │ ├── KiuConfig.java │ │ │ ├── KkConfig.java │ │ │ ├── KlConfig.java │ │ │ ├── KmConfig.java │ │ │ ├── KnConfig.java │ │ │ ├── KoConfig.java │ │ │ ├── KoiConfig.java │ │ │ ├── KrcConfig.java │ │ │ ├── KsConfig.java │ │ │ ├── KshConfig.java │ │ │ ├── KuConfig.java │ │ │ ├── KvConfig.java │ │ │ ├── KwConfig.java │ │ │ ├── KyConfig.java │ │ │ ├── LaConfig.java │ │ │ ├── LadConfig.java │ │ │ ├── LangFactory.java │ │ │ ├── LbConfig.java │ │ │ ├── LbeConfig.java │ │ │ ├── LezConfig.java │ │ │ ├── LfnConfig.java │ │ │ ├── LiConfig.java │ │ │ ├── LijConfig.java │ │ │ ├── LivConfig.java │ │ │ ├── LmoConfig.java │ │ │ ├── LnConfig.java │ │ │ ├── LoConfig.java │ │ │ ├── LrcConfig.java │ │ │ ├── LtConfig.java │ │ │ ├── LtgConfig.java │ │ │ ├── LvConfig.java │ │ │ ├── LzhConfig.java │ │ │ ├── LzzConfig.java │ │ │ ├── MaiConfig.java │ │ │ ├── MdfConfig.java │ │ │ ├── MgConfig.java │ │ │ ├── MhrConfig.java │ │ │ ├── MinConfig.java │ │ │ ├── MkConfig.java │ │ │ ├── MlConfig.java │ │ │ ├── MnConfig.java │ │ │ ├── MoConfig.java │ │ │ ├── MrConfig.java │ │ │ ├── MrjConfig.java │ │ │ ├── MsConfig.java │ │ │ ├── MtConfig.java │ │ │ ├── MwlConfig.java │ │ │ ├── MyConfig.java │ │ │ ├── MyvConfig.java │ │ │ ├── MznConfig.java │ │ │ ├── NahConfig.java │ │ │ ├── NanConfig.java │ │ │ ├── NapConfig.java │ │ │ ├── NbConfig.java │ │ │ ├── NdsConfig.java │ │ │ ├── NeConfig.java │ │ │ ├── NewConfig.java │ │ │ ├── NlConfig.java │ │ │ ├── NnConfig.java │ │ │ ├── NsoConfig.java │ │ │ ├── NvConfig.java │ │ │ ├── OcConfig.java │ │ │ ├── OrConfig.java │ │ │ ├── OsConfig.java │ │ │ ├── PaConfig.java │ │ │ ├── PcdConfig.java │ │ │ ├── PdcConfig.java │ │ │ ├── PdtConfig.java │ │ │ ├── PflConfig.java │ │ │ ├── PiConfig.java │ │ │ ├── PlConfig.java │ │ │ ├── PmsConfig.java │ │ │ ├── PnbConfig.java │ │ │ ├── PntConfig.java │ │ │ ├── PsConfig.java │ │ │ ├── PtConfig.java │ │ │ ├── QuConfig.java │ │ │ ├── QugConfig.java │ │ │ ├── RgnConfig.java │ │ │ ├── RmConfig.java │ │ │ ├── RmyConfig.java │ │ │ ├── RoConfig.java │ │ │ ├── RuConfig.java │ │ │ ├── RueConfig.java │ │ │ ├── RuqConfig.java │ │ │ ├── SaConfig.java │ │ │ ├── SahConfig.java │ │ │ ├── ScConfig.java │ │ │ ├── ScnConfig.java │ │ │ ├── SdConfig.java │ │ │ ├── SdcConfig.java │ │ │ ├── SeConfig.java │ │ │ ├── SesConfig.java │ │ │ ├── SgConfig.java │ │ │ ├── SgsConfig.java │ │ │ ├── ShConfig.java │ │ │ ├── SiConfig.java │ │ │ ├── SkConfig.java │ │ │ ├── SlConfig.java │ │ │ ├── SliConfig.java │ │ │ ├── SpanishConfig.java │ │ │ ├── SqConfig.java │ │ │ ├── SrConfig.java │ │ │ ├── SrnConfig.java │ │ │ ├── StqConfig.java │ │ │ ├── SuConfig.java │ │ │ ├── SvConfig.java │ │ │ ├── SwConfig.java │ │ │ ├── SwedishConfig.java │ │ │ ├── SzlConfig.java │ │ │ ├── TaConfig.java │ │ │ ├── TcyConfig.java │ │ │ ├── TeConfig.java │ │ │ ├── TemplateConfig.java │ │ │ ├── TetConfig.java │ │ │ ├── TgConfig.java │ │ │ ├── ThConfig.java │ │ │ ├── TkConfig.java │ │ │ ├── TlConfig.java │ │ │ ├── TlyConfig.java │ │ │ ├── TpiConfig.java │ │ │ ├── TrConfig.java │ │ │ ├── TtConfig.java │ │ │ ├── TyConfig.java │ │ │ ├── TyvConfig.java │ │ │ ├── UdmConfig.java │ │ │ ├── UgConfig.java │ │ │ ├── UkConfig.java │ │ │ ├── UrConfig.java │ │ │ ├── UzConfig.java │ │ │ ├── VecConfig.java │ │ │ ├── VepConfig.java │ │ │ ├── ViConfig.java │ │ │ ├── VlsConfig.java │ │ │ ├── VmfConfig.java │ │ │ ├── VoConfig.java │ │ │ ├── VotConfig.java │ │ │ ├── VroConfig.java │ │ │ ├── WaConfig.java │ │ │ ├── WarConfig.java │ │ │ ├── WoConfig.java │ │ │ ├── WuuConfig.java │ │ │ ├── XalConfig.java │ │ │ ├── XmfConfig.java │ │ │ ├── YiConfig.java │ │ │ ├── YoConfig.java │ │ │ ├── YueConfig.java │ │ │ ├── ZaConfig.java │ │ │ ├── ZeaConfig.java │ │ │ └── ZhConfig.java │ │ │ └── parser │ │ │ ├── SwebleParserUtil.java │ │ │ ├── SwebleTextAstWalker.java │ │ │ ├── SwebleWikimarkupParserBase.java │ │ │ ├── SwebleWikimarkupToText.java │ │ │ └── annotation │ │ │ ├── AbstractAnnotationParser.java │ │ │ ├── AnnotationContext.java │ │ │ ├── AnnotationParser.java │ │ │ ├── FilteringStringBuilder.java │ │ │ ├── SwebleAnnotationParser.java │ │ │ ├── Table.java │ │ │ ├── TableCell.java │ │ │ ├── TableParser.java │ │ │ ├── Template.java │ │ │ ├── TemplateArgument.java │ │ │ ├── TemplateParser.java │ │ │ └── TextParser.java │ └── resources │ │ └── log4j2.xml └── test │ └── java │ └── se │ └── lth │ └── cs │ └── nlp │ └── mediawiki │ └── AppTest.java ├── testdata ├── alfred_nobel.wiki ├── helsingborg.wiki └── svminidump.xml └── wikiforia.iml /Makefile: -------------------------------------------------------------------------------- 1 | TARGET:=target/wikiforia-1.2.jar 2 | SOURCE:=$(shell find src/ -type f) 3 | 4 | .PHONY: all clean 5 | 6 | all: $(TARGET) | target/ 7 | 8 | $(TARGET): $(SOURCE) 9 | mvn clean compile package install 10 | 11 | clean: 12 | rm -rf target/ 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dist/lib/commons-cli-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-cli-1.2.jar -------------------------------------------------------------------------------- /dist/lib/commons-codec-1.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-codec-1.6.jar -------------------------------------------------------------------------------- /dist/lib/commons-collections-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-collections-3.2.1.jar -------------------------------------------------------------------------------- /dist/lib/commons-compress-1.8.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-compress-1.8.1.jar -------------------------------------------------------------------------------- /dist/lib/commons-io-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-io-1.4.jar -------------------------------------------------------------------------------- /dist/lib/commons-jxpath-1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-jxpath-1.3.jar -------------------------------------------------------------------------------- /dist/lib/commons-lang-2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-lang-2.5.jar -------------------------------------------------------------------------------- /dist/lib/commons-lang3-3.3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/commons-lang3-3.3.2.jar -------------------------------------------------------------------------------- /dist/lib/jaxb-impl-2.2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/jaxb-impl-2.2.5.jar -------------------------------------------------------------------------------- /dist/lib/jopt-simple-4.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/jopt-simple-4.3.jar -------------------------------------------------------------------------------- /dist/lib/jsoup-1.6.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/jsoup-1.6.3.jar -------------------------------------------------------------------------------- /dist/lib/junit-3.8.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/junit-3.8.1.jar -------------------------------------------------------------------------------- /dist/lib/log4j-1.2.14.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/log4j-1.2.14.jar -------------------------------------------------------------------------------- /dist/lib/log4j-api-2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/log4j-api-2.1.jar -------------------------------------------------------------------------------- /dist/lib/log4j-core-2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/log4j-core-2.1.jar -------------------------------------------------------------------------------- /dist/lib/log4j-slf4j-impl-2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/log4j-slf4j-impl-2.1.jar -------------------------------------------------------------------------------- /dist/lib/ptk-common-2.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/ptk-common-2.0.0.jar -------------------------------------------------------------------------------- /dist/lib/rats-runtime-1.15.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/rats-runtime-1.15.0.jar -------------------------------------------------------------------------------- /dist/lib/slf4j-api-1.7.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/slf4j-api-1.7.7.jar -------------------------------------------------------------------------------- /dist/lib/stax-api-1.0-2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/stax-api-1.0-2.jar -------------------------------------------------------------------------------- /dist/lib/stax2-api-3.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/stax2-api-3.1.1.jar -------------------------------------------------------------------------------- /dist/lib/swc-engine-2.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/swc-engine-2.0.0.jar -------------------------------------------------------------------------------- /dist/lib/swc-parser-lazy-2.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/swc-parser-lazy-2.0.0.jar -------------------------------------------------------------------------------- /dist/lib/utils-2.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/utils-2.0.0.jar -------------------------------------------------------------------------------- /dist/lib/woodstox-core-asl-4.2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/lib/woodstox-core-asl-4.2.0.jar -------------------------------------------------------------------------------- /dist/wikiforia-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcusklang/wikiforia/9f93c57bec27ea75590c6b394cf42ecc512d4bde/dist/wikiforia-1.2.1.jar -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/io/SplitWriter.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.io; 2 | 3 | import org.apache.commons.lang3.StringUtils; 4 | 5 | import java.io.File; 6 | import java.io.IOError; 7 | import java.io.IOException; 8 | import java.util.concurrent.atomic.AtomicLong; 9 | 10 | /** 11 | * Split writer, used in parallel split writer 12 | */ 13 | public abstract class SplitWriter { 14 | private AtomicLong splitCounter = new AtomicLong(0); 15 | protected File basepath; 16 | 17 | public SplitWriter(File basepath) { 18 | this.basepath = basepath; 19 | if(!this.basepath.exists()) 20 | if(!this.basepath.mkdirs()) { 21 | throw new IOError(new IOException("Failed to mkdirs " + basepath.getAbsolutePath())); 22 | } 23 | } 24 | 25 | protected File newSplit() { 26 | return new File(basepath, "part-" + StringUtils.leftPad(String.valueOf(splitCounter.addAndGet(1)), 5, '0')); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/io/StringWriter.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.io; 2 | 3 | import java.io.*; 4 | 5 | /** 6 | * Writes full strings, partial strings are not clipped. 7 | */ 8 | public class StringWriter implements Writer { 9 | 10 | private final BufferedWriter writer; 11 | private final long limit; 12 | private long written = 0; 13 | 14 | public static final long DEFAULT_LIMIT = 128*1024*1024; 15 | 16 | public StringWriter(File target) { 17 | this(target, DEFAULT_LIMIT); 18 | } 19 | 20 | public StringWriter(File target, long limit) { 21 | this.limit = limit; 22 | try { 23 | writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(target), "UTF-8")); 24 | } catch (IOException e) { 25 | throw new IOError(e); 26 | } 27 | } 28 | 29 | public StringWriter(OutputStream stream) { 30 | this(stream, DEFAULT_LIMIT); 31 | } 32 | 33 | public StringWriter(OutputStream stream, long limit) { 34 | this.limit = limit; 35 | try { 36 | writer = new BufferedWriter(new OutputStreamWriter(stream, "UTF-8")); 37 | } 38 | catch(IOException ex) { 39 | throw new IOError(ex); 40 | } 41 | } 42 | 43 | 44 | @Override 45 | public boolean write(String item) { 46 | try { 47 | written += item.length(); 48 | writer.write(item); 49 | } catch (IOException e) { 50 | throw new IOError(e); 51 | } 52 | 53 | return written < limit; 54 | } 55 | 56 | @Override 57 | public boolean isFull() { 58 | return written >= limit; 59 | } 60 | 61 | @Override 62 | public void flush() { 63 | try { 64 | writer.flush(); 65 | } catch (IOException e) { 66 | throw new IOError(e); 67 | } 68 | } 69 | 70 | @Override 71 | public void close() { 72 | try { 73 | writer.flush(); 74 | writer.close(); 75 | } catch (IOException e) { 76 | throw new IOError(e); 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/io/Writer.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.io; 2 | 3 | public interface Writer { 4 | /** 5 | * Write stuff 6 | * @param item item 7 | * @return true if more to write is possible, false if last item should have been written. 8 | */ 9 | public boolean write(T item); 10 | 11 | /** 12 | * Check if writer is full, i.e. should not write any more. 13 | * @return true 14 | */ 15 | public boolean isFull(); 16 | 17 | public void flush(); 18 | 19 | /** 20 | * Close and flush writer 21 | */ 22 | public void close(); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/mediawiki/model/Header.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.mediawiki.model; 18 | 19 | import java.io.Serializable; 20 | import java.util.HashMap; 21 | import java.util.TreeMap; 22 | 23 | /** 24 | * Represents a Mediawiki dump header 25 | */ 26 | public class Header implements Serializable { 27 | private String lang; 28 | private String version; 29 | private Siteinfo siteinfo; 30 | 31 | protected Header() { 32 | 33 | } 34 | 35 | public Header(String lang, String version, Siteinfo siteinfo) { 36 | this.siteinfo = siteinfo; 37 | this.version = version; 38 | this.lang = lang; 39 | } 40 | 41 | public String getLang() { 42 | return lang; 43 | } 44 | 45 | public String getVersion() { 46 | return version; 47 | } 48 | 49 | public Siteinfo getSiteinfo() { 50 | return siteinfo; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/mediawiki/model/Page.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.mediawiki.model; 18 | 19 | import java.io.Serializable; 20 | 21 | /** 22 | * Represents a MediaWiki page 23 | */ 24 | public class Page implements Serializable { 25 | private Header header; 26 | private long id; 27 | private String title; 28 | private String content; 29 | private long revision; 30 | private int namespace; 31 | private String format; 32 | 33 | protected Page() { 34 | 35 | } 36 | 37 | public Page(Header head, long id, String title, String content, long revision, int namespace, String format) { 38 | this.header = head; 39 | this.id = id; 40 | this.title = title; 41 | this.content = content; 42 | this.revision = revision; 43 | this.namespace = namespace; 44 | this.format = format; 45 | } 46 | 47 | public long getId() { 48 | return id; 49 | } 50 | 51 | public String getTitle() { 52 | return title; 53 | } 54 | 55 | public String getContent() { 56 | return content; 57 | } 58 | 59 | public long getRevision() { 60 | return revision; 61 | } 62 | 63 | public String getFormat() { 64 | return format; 65 | } 66 | 67 | public int getNamespace() { 68 | return namespace; 69 | } 70 | 71 | public Header getHeader() { 72 | return header; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/mediawiki/model/Siteinfo.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.mediawiki.model; 18 | 19 | import java.io.Serializable; 20 | import java.util.Collections; 21 | import java.util.Map; 22 | import java.util.TreeMap; 23 | 24 | /** 25 | * Represents siteinfo present in the mediawiki dump header. 26 | */ 27 | public class Siteinfo implements Serializable { 28 | private String sitename; 29 | private String dbname; 30 | private String base; 31 | private String generator; 32 | private Map namespaces; 33 | 34 | protected Siteinfo() { 35 | 36 | } 37 | 38 | public Siteinfo(String sitename, String dbname, String base, String generator, Map namespaces) { 39 | this.sitename = sitename; 40 | this.dbname = dbname; 41 | this.base = base; 42 | this.generator = generator; 43 | this.namespaces = Collections.unmodifiableMap(new TreeMap(namespaces)); 44 | } 45 | 46 | public String getSitename() { 47 | return sitename; 48 | } 49 | 50 | public String getDbname() { 51 | return dbname; 52 | } 53 | 54 | public String getBase() { 55 | return base; 56 | } 57 | 58 | public String getGenerator() { 59 | return generator; 60 | } 61 | 62 | public Map getNamespaces() { 63 | return namespaces; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/mediawiki/model/WikipediaPage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.mediawiki.model; 18 | 19 | /** 20 | * Represents a parsed page that is assumed to belong to a wikipedia dump. 21 | */ 22 | public class WikipediaPage extends Page { 23 | private final String text; 24 | 25 | public WikipediaPage(Page page, String text) { 26 | super(page.getHeader(), page.getId(), page.getTitle(), page.getContent(), page.getRevision(), page.getNamespace(), page.getFormat()); 27 | this.text = text; 28 | } 29 | 30 | public String getText() { 31 | return text; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/AbstractEmitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | import java.util.ArrayList; 20 | import java.util.Arrays; 21 | import java.util.List; 22 | 23 | /** 24 | * Emitter base class, sends out batches of data 25 | */ 26 | public abstract class AbstractEmitter implements Emitter { 27 | private final ArrayList> outputSink = new ArrayList>(); 28 | private final ArrayList> errorSink = new ArrayList>(); 29 | private final ArrayList> logSink = new ArrayList>(); 30 | 31 | @Override 32 | public final void appendOutputSink(Sink output) { 33 | this.outputSink.add(output); 34 | } 35 | public final void appendErrorSink(Sink output) { 36 | errorSink.add(output); 37 | } 38 | public final void appendLogSink(Sink output) { 39 | logSink.add(output); 40 | } 41 | 42 | protected final void output(List batch) { 43 | for(Sink sink : outputSink) { 44 | sink.process(batch); 45 | } 46 | } 47 | 48 | protected final void error(List batch) { 49 | for(Sink sink : errorSink) { 50 | sink.process(batch); 51 | } 52 | } 53 | 54 | protected final void log(String...message) { 55 | List strings = Arrays.asList(message); 56 | for(Sink sink : logSink) { 57 | sink.process(strings); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/Emitter.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | /** 20 | * Emitter interface, specifies methods that allows 21 | * external classes to hook in on events. 22 | */ 23 | public interface Emitter { 24 | /** 25 | * Append a sink for the default output 26 | * @param output the sink 27 | */ 28 | public void appendOutputSink(Sink output); 29 | 30 | /** 31 | * Append a sink to listen to errors 32 | * @param output 33 | */ 34 | public void appendErrorSink(Sink output); 35 | 36 | /** 37 | * Append a log sink 38 | * @param output 39 | */ 40 | public void appendLogSink(Sink output); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/Filter.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.pipeline; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | /** 7 | * Created by csz-mkg on 14-12-11. 8 | */ 9 | public abstract class Filter extends Mapper { 10 | @Override 11 | public void process(List batch) { 12 | if(batch.size() == 0) 13 | output(batch); //let the end signal get through. 14 | 15 | ArrayList output = new ArrayList(); 16 | 17 | for (T item : batch) { 18 | if(accept(item)) { 19 | output.add(item); 20 | } 21 | } 22 | 23 | if(output.size() > 0) 24 | output(output); 25 | } 26 | 27 | protected static boolean delegatedAccept(Filter filter, T item) { 28 | return filter.accept(item); 29 | } 30 | 31 | protected abstract boolean accept(T item); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/IdentityFilter.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.pipeline; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Created by csz-mkg on 14-12-11. 7 | */ 8 | public final class IdentityFilter extends Filter { 9 | @Override 10 | public final void process(List batch) { 11 | output(batch); 12 | } 13 | 14 | @Override 15 | protected final boolean accept(T item) { 16 | return true; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/Mapper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Mapper, converts from an input type to an output type in batches, 23 | * optionally sends out failed mappings via a separate typed stream. 24 | */ 25 | public abstract class Mapper extends AbstractEmitter implements Sink, Emitter { 26 | 27 | /** 28 | * Map batches of data 29 | * @param batch input batch 30 | * @remarks uses emitter methods to send out the result. 31 | */ 32 | @Override 33 | public abstract void process(List batch); 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/Pipeline.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | /** 20 | * Pipeline instance 21 | */ 22 | public interface Pipeline { 23 | 24 | /** 25 | * Run the pipeline (blocking) 26 | */ 27 | public void run(); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/PipelinePipeBlock.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | /** 20 | * Pipeline fluent interface 21 | */ 22 | public interface PipelinePipeBlock { 23 | 24 | /** 25 | * Pipe result to a mapper 26 | * @param mapper the mapper. 27 | * @param the type of mapped output 28 | * @param the type of mapping errors 29 | * @return new piping stage 30 | */ 31 | public PipelinePipeBlock pipe(Mapper mapper); 32 | 33 | /** 34 | * Send output to a sink 35 | * @param sink the sink 36 | * @return this instance 37 | */ 38 | public PipelinePipeBlock sendOutput(Sink sink); 39 | 40 | /** 41 | * Send error results to a sink 42 | * @param sink the sink 43 | * @return this instance 44 | */ 45 | public PipelinePipeBlock sendError(Sink sink); 46 | 47 | /** 48 | * Send log results to a sink 49 | * @param sink the sink 50 | * @return this instance 51 | */ 52 | public PipelinePipeBlock sendLog(Sink sink); 53 | 54 | /** 55 | * Final pipe to an endpoint sink 56 | * @param sink the sink 57 | * @return a pipeline that is ready for execution 58 | */ 59 | public Pipeline pipe(Sink sink); 60 | 61 | /** 62 | * Build a pipeline based on current state 63 | * @return a pipeline that is ready for execution 64 | */ 65 | public Pipeline build(); 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/Sink.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Sink, an event listener 23 | */ 24 | public interface Sink { 25 | 26 | /** 27 | * Process batch 28 | * @param batch 29 | * @remarks the way the pipeline is built right now, this method is assumed 30 | * to be blocking and this affects the rest of the pipeline. 31 | * 32 | * This method is assumed to be threadsafe, add necessary synchronizations if needed. 33 | */ 34 | public void process(List batch); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/pipeline/Source.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.pipeline; 18 | 19 | /** 20 | * Source, that sends out events 21 | */ 22 | public interface Source extends Emitter { 23 | 24 | /** 25 | * Blocking method that starts working 26 | */ 27 | public void run(); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/WikipediaPageType.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia; 2 | 3 | public enum WikipediaPageType { 4 | ARTICLE, 5 | STUB, 6 | DISAMBIGUATION, 7 | REDIRECT, 8 | CATEGORY, 9 | LIST, 10 | TEMPLATE, 11 | OTHER, 12 | NOT_A_PAGE 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AkConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AkConfig extends TemplateConfig { 22 | public AkConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Soronko"); 25 | addNamespaceAlias(1, "Nkɔmmɔ"); 26 | addNamespaceAlias(2, "Odwumanyɛni"); 27 | addNamespaceAlias(3, "Odwumanyɛni_nkɔmmɔbea"); 28 | addNamespaceAlias(5, "Wikipedia_nkɔmmɔ"); 29 | addNamespaceAlias(6, "File"); 30 | addNamespaceAlias(7, "File_nkɔmmɔ"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_nkɔmmɔ"); 33 | addNamespaceAlias(10, "Nhwɛsode"); 34 | addNamespaceAlias(11, "Nhwɛsode_nkɔmmɔbea"); 35 | addNamespaceAlias(12, "Boa"); 36 | addNamespaceAlias(13, "Mmoa_nkɔmmɔbea"); 37 | addNamespaceAlias(14, "Nkyekyem"); 38 | addNamespaceAlias(15, "Nkyekyem_nkɔmmɔbea"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ak.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ak"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AmConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AmConfig extends TemplateConfig { 22 | public AmConfig() { 23 | addNamespaceAlias(-2, "ፋይል"); 24 | addNamespaceAlias(-1, "ልዩ"); 25 | addNamespaceAlias(1, "ውይይት"); 26 | addNamespaceAlias(2, "አባል"); 27 | addNamespaceAlias(3, "አባል_ውይይት"); 28 | addNamespaceAlias(5, "Wikipedia_ውይይት"); 29 | addNamespaceAlias(6, "ስዕል"); 30 | addNamespaceAlias(7, "ስዕል_ውይይት"); 31 | addNamespaceAlias(8, "መልዕክት"); 32 | addNamespaceAlias(9, "መልዕክት_ውይይት"); 33 | addNamespaceAlias(10, "መለጠፊያ", "መልጠፊያ"); 34 | addNamespaceAlias(11, "መለጠፊያ_ውይይት", "መልጠፊያ_ውይይት"); 35 | addNamespaceAlias(12, "እርዳታ"); 36 | addNamespaceAlias(13, "እርዳታ_ውይይት"); 37 | addNamespaceAlias(14, "መደብ"); 38 | addNamespaceAlias(15, "መደብ_ውይይት"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://am.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "am"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AngConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AngConfig extends TemplateConfig { 22 | public AngConfig() { 23 | addNamespaceAlias(-1, "Syndrig"); 24 | addNamespaceAlias(1, "Mōtung", "Gesprec", "Motung"); 25 | addNamespaceAlias(2, "Brūcend", "Brucend"); 26 | addNamespaceAlias(3, "Brūcendmōtung", "Brucendmotung"); 27 | addNamespaceAlias(6, "Ymele", "Biliþ"); 28 | addNamespaceAlias(7, "Ymelmōtung", "Biliþmotung", "Biliþmōtung"); 29 | addNamespaceAlias(9, "MediaWikimōtung"); 30 | addNamespaceAlias(10, "Bysen"); 31 | addNamespaceAlias(11, "Bysenmōtung", "Bysengesprec", "Bysenmotung"); 32 | addNamespaceAlias(12, "Help"); 33 | addNamespaceAlias(13, "Helpmōtung", "Helpgesprec", "Helpmotung"); 34 | addNamespaceAlias(14, "Flocc"); 35 | addNamespaceAlias(15, "Floccmōtung", "Floccgesprec", "Floccmotung"); 36 | 37 | } 38 | 39 | @Override 40 | protected String getSiteName() { 41 | return "Wikipedia"; 42 | } 43 | 44 | @Override 45 | protected String getWikiUrl() { 46 | return "http://ang.wikipedia.org/"; 47 | } 48 | 49 | @Override 50 | public String getIso639() { 51 | return "ang"; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AnpConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AnpConfig extends TemplateConfig { 22 | public AnpConfig() { 23 | addNamespaceAlias(-2, "मीडिया"); 24 | addNamespaceAlias(-1, "विशेष"); 25 | addNamespaceAlias(1, "वार्ता"); 26 | addNamespaceAlias(2, "सदस्य"); 27 | addNamespaceAlias(3, "सदस्य_वार्ता"); 28 | addNamespaceAlias(5, "Wikipedia_वार्ता"); 29 | addNamespaceAlias(6, "चित्र"); 30 | addNamespaceAlias(7, "चित्र_वार्ता"); 31 | addNamespaceAlias(8, "मीडियाविकि"); 32 | addNamespaceAlias(9, "मीडियाविकि_वार्ता"); 33 | addNamespaceAlias(10, "साँचा"); 34 | addNamespaceAlias(11, "साँचा_वार्ता"); 35 | addNamespaceAlias(12, "सहायता"); 36 | addNamespaceAlias(13, "सहायता_वार्ता"); 37 | addNamespaceAlias(14, "श्रेणी"); 38 | addNamespaceAlias(15, "श्रेणी_वार्ता"); 39 | 40 | addI18nCIAlias("redirect", "#अनुप्रेषित", "#REDIRECT"); 41 | } 42 | 43 | @Override 44 | protected String getSiteName() { 45 | return "Wikipedia"; 46 | } 47 | 48 | @Override 49 | protected String getWikiUrl() { 50 | return "http://anp.wikipedia.org/"; 51 | } 52 | 53 | @Override 54 | public String getIso639() { 55 | return "anp"; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AsConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AsConfig extends TemplateConfig { 22 | public AsConfig() { 23 | addNamespaceAlias(-2, "মাধ্যম"); 24 | addNamespaceAlias(-1, "বিশেষ", "विशेष"); 25 | addNamespaceAlias(1, "বাৰ্তা", "वार्ता", "বার্তা"); 26 | addNamespaceAlias(2, "সদস্য", "सदस्य"); 27 | addNamespaceAlias(3, "সদস্য_বাৰ্তা", "सदस्य_वार्ता", "সদস্য বার্তা"); 28 | addNamespaceAlias(5, "Wikipedia_বাৰ্তা", "Wikipedia_वार्ता", "Wikipedia বার্তা"); 29 | addNamespaceAlias(6, "চিত্ৰ", "चित्र", "চিত্র"); 30 | addNamespaceAlias(7, "চিত্ৰ_বাৰ্তা", "चित्र_वार्ता", "চিত্র বার্তা"); 31 | addNamespaceAlias(8, "মিডিয়াৱিকি", "মেডিয়াৱিকি"); 32 | addNamespaceAlias(9, "মিডিয়াৱিকি_আলোচনা", "মেডিয়াৱিকি_বাৰ্তা", "MediaWiki বার্তা"); 33 | addNamespaceAlias(10, "সাঁচ", "साँचा"); 34 | addNamespaceAlias(11, "সাঁচ_বাৰ্তা", "साँचा_वार्ता", "সাঁচ বার্তা"); 35 | addNamespaceAlias(12, "সহায়"); 36 | addNamespaceAlias(13, "সহায়_বাৰ্তা", "সহায় বার্তা"); 37 | addNamespaceAlias(14, "শ্ৰেণী", "श्रेणी", "শ্রেণী"); 38 | addNamespaceAlias(15, "শ্ৰেণী_বাৰ্তা", "श्रेणी_वार्ता", "শ্রেণী বার্তা"); 39 | 40 | addI18nCIAlias("special", "বিশেষ", "special"); 41 | addI18nAlias("hiddencat", "__গোপন_শ্ৰেণী__", "__HIDDENCAT__"); 42 | addI18nAlias("pagesize", "পৃষ্ঠাৰ_আকাৰ", "PAGESIZE"); 43 | addI18nAlias("index", "__সূচী__", "__INDEX__"); 44 | } 45 | 46 | @Override 47 | protected String getSiteName() { 48 | return "Wikipedia"; 49 | } 50 | 51 | @Override 52 | protected String getWikiUrl() { 53 | return "http://as.wikipedia.org/"; 54 | } 55 | 56 | @Override 57 | public String getIso639() { 58 | return "as"; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AstConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AstConfig extends TemplateConfig { 22 | public AstConfig() { 23 | addNamespaceAlias(-2, "Medios"); 24 | addNamespaceAlias(-1, "Especial"); 25 | addNamespaceAlias(1, "Alderique", "Discusión"); 26 | addNamespaceAlias(2, "Usuariu"); 27 | addNamespaceAlias(3, "Usuariu_alderique", "Usuariu_discusión"); 28 | addNamespaceAlias(5, "Wikipedia_alderique", "Wikipedia_discusión"); 29 | addNamespaceAlias(6, "Ficheru", "Imaxe", "Imaxen", "Archivu"); 30 | addNamespaceAlias(7, "Ficheru_alderique", "Imaxe alderique", "Imaxen_discusión", "Archivu_alderique"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_alderique", "MediaWiki_discusión"); 33 | addNamespaceAlias(10, "Plantía", "Plantilla"); 34 | addNamespaceAlias(11, "Plantía_alderique", "Plantilla_discusión"); 35 | addNamespaceAlias(12, "Ayuda", "Aida"); 36 | addNamespaceAlias(13, "Ayuda_alderique", "Ayuda_discusión", "Aida_alderique"); 37 | addNamespaceAlias(14, "Categoría"); 38 | addNamespaceAlias(15, "Categoría_alderique", "Categoría_discusión"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ast.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ast"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AvkConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AvkConfig extends TemplateConfig { 22 | public AvkConfig() { 23 | addNamespaceAlias(-2, "Mamind"); 24 | addNamespaceAlias(-1, "Aptaca"); 25 | addNamespaceAlias(1, "Prilara"); 26 | addNamespaceAlias(2, "Favesik"); 27 | addNamespaceAlias(3, "Favesikprilara"); 28 | addNamespaceAlias(5, "Wikipedia prilara"); 29 | addNamespaceAlias(6, "Ewava"); 30 | addNamespaceAlias(7, "Ewavaprilara"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki prilara"); 33 | addNamespaceAlias(10, "Teza"); 34 | addNamespaceAlias(11, "Tezaprilara"); 35 | addNamespaceAlias(12, "Pomara"); 36 | addNamespaceAlias(13, "Pomaraprilara"); 37 | addNamespaceAlias(14, "Loma"); 38 | addNamespaceAlias(15, "Lomaprilara"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://avk.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "avk"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/AzConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class AzConfig extends TemplateConfig { 22 | public AzConfig() { 23 | addNamespaceAlias(-1, "Xüsusi"); 24 | addNamespaceAlias(0, ""); 25 | addNamespaceAlias(1, "Müzakirə"); 26 | addNamespaceAlias(2, "İstifadəçi"); 27 | addNamespaceAlias(3, "İstifadəçi_müzakirəsi"); 28 | addNamespaceAlias(5, "Wikipedia_müzakirəsi"); 29 | addNamespaceAlias(6, "Şəkil"); 30 | addNamespaceAlias(7, "Şəkil_müzakirəsi"); 31 | addNamespaceAlias(8, "MediaWiki", "MediyaViki"); 32 | addNamespaceAlias(9, "MediaWiki_müzakirəsi", "MediyaViki_müzakirəsi"); 33 | addNamespaceAlias(10, "Şablon"); 34 | addNamespaceAlias(11, "Şablon_müzakirəsi"); 35 | addNamespaceAlias(12, "Kömək"); 36 | addNamespaceAlias(13, "Kömək_müzakirəsi"); 37 | addNamespaceAlias(14, "Kateqoriya"); 38 | addNamespaceAlias(15, "Kateqoriya_müzakirəsi"); 39 | addNamespaceAlias(-2, "Mediya"); 40 | 41 | addI18nCIAlias("redirect", "#İSTİQAMƏTLƏNDİRMƏ", "#İSTİQAMƏTLƏNDİR", "#REDIRECT"); 42 | addI18nCIAlias("notoc", "__MÜNDƏRİCATYOX__", "__NOTOC__"); 43 | addI18nCIAlias("nogallery", "__QALEREYAYOX__", "__NOGALLERY__"); 44 | } 45 | 46 | @Override 47 | protected String getSiteName() { 48 | return "Wikipedia"; 49 | } 50 | 51 | @Override 52 | protected String getWikiUrl() { 53 | return "http://az.wikipedia.org/"; 54 | } 55 | 56 | @Override 57 | public String getIso639() { 58 | return "az"; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BbcConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BbcConfig extends TemplateConfig { 22 | public BbcConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://bbc.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "bbc"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BeConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BeConfig extends TemplateConfig { 22 | public BeConfig() { 23 | addNamespaceAlias(-2, "Мультымедыя"); 24 | addNamespaceAlias(-1, "Адмысловае"); 25 | addNamespaceAlias(1, "Размовы"); 26 | addNamespaceAlias(2, "Удзельнік"); 27 | addNamespaceAlias(3, "Размовы_з_удзельнікам"); 28 | addNamespaceAlias(5, "Размовы_пра_{{GRAMMAR:вінавальны|Wikipedia}}", "Wikipedia_размовы"); 29 | addNamespaceAlias(6, "Файл", "Выява"); 30 | addNamespaceAlias(7, "Размовы_пра_файл", "Размовы_пра_выяву"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Размовы_пра_MediaWiki"); 33 | addNamespaceAlias(10, "Шаблон"); 34 | addNamespaceAlias(11, "Размовы_пра_шаблон"); 35 | addNamespaceAlias(12, "Даведка"); 36 | addNamespaceAlias(13, "Размовы_пра_даведку"); 37 | addNamespaceAlias(14, "Катэгорыя"); 38 | addNamespaceAlias(15, "Размовы_пра_катэгорыю"); 39 | 40 | addI18nAlias("img_thumbnail", "міні", "мініяцюра", "thumbnail", "thumb"); 41 | addI18nAlias("img_manualthumb", "міні=$1", "мініяцюра=$1", "thumbnail=$1", "thumb=$1"); 42 | addI18nAlias("img_right", "справа", "right"); 43 | addI18nAlias("img_left", "злева", "left"); 44 | addI18nAlias("img_none", "няма", "none"); 45 | addI18nAlias("img_width", "$1пкс", "$1px"); 46 | addI18nAlias("img_center", "цэнтр", "center", "centre"); 47 | addI18nAlias("img_framed", "безрамкі", "framed", "enframed", "frame"); 48 | } 49 | 50 | @Override 51 | protected String getSiteName() { 52 | return "Wikipedia"; 53 | } 54 | 55 | @Override 56 | protected String getWikiUrl() { 57 | return "http://be.wikipedia.org/"; 58 | } 59 | 60 | @Override 61 | public String getIso639() { 62 | return "be"; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BhConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BhConfig extends TemplateConfig { 22 | public BhConfig() { 23 | addNamespaceAlias(-2, "मीडिया"); 24 | addNamespaceAlias(-1, "विशेष"); 25 | addNamespaceAlias(1, "वार्तालाप"); 26 | addNamespaceAlias(2, "प्रयोगकर्ता"); 27 | addNamespaceAlias(3, "प्रयोगकर्ता_वार्ता"); 28 | addNamespaceAlias(5, "Wikipedia_वार्ता"); 29 | addNamespaceAlias(6, "चित्र"); 30 | addNamespaceAlias(7, "चित्र_वार्ता"); 31 | addNamespaceAlias(8, "मीडियाविकि"); 32 | addNamespaceAlias(9, "मीडियाविकि_वार्ता"); 33 | addNamespaceAlias(10, "टेम्पलेट"); 34 | addNamespaceAlias(11, "टेम्पलेट_वार्ता"); 35 | addNamespaceAlias(12, "मदद"); 36 | addNamespaceAlias(13, "मदद_वार्ता"); 37 | addNamespaceAlias(14, "श्रेणी"); 38 | addNamespaceAlias(15, "श्रेणी_वार्ता"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://bh.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "bh"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BhoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BhoConfig extends TemplateConfig { 22 | public BhoConfig() { 23 | addNamespaceAlias(-2, "मीडिया"); 24 | addNamespaceAlias(-1, "विशेष"); 25 | addNamespaceAlias(1, "वार्तालाप"); 26 | addNamespaceAlias(2, "प्रयोगकर्ता"); 27 | addNamespaceAlias(3, "प्रयोगकर्ता_वार्ता"); 28 | addNamespaceAlias(5, "Wikipedia_वार्ता"); 29 | addNamespaceAlias(6, "चित्र"); 30 | addNamespaceAlias(7, "चित्र_वार्ता"); 31 | addNamespaceAlias(8, "मीडियाविकि"); 32 | addNamespaceAlias(9, "मीडियाविकि_वार्ता"); 33 | addNamespaceAlias(10, "टेम्पलेट"); 34 | addNamespaceAlias(11, "टेम्पलेट_वार्ता"); 35 | addNamespaceAlias(12, "मदद"); 36 | addNamespaceAlias(13, "मदद_वार्ता"); 37 | addNamespaceAlias(14, "श्रेणी"); 38 | addNamespaceAlias(15, "श्रेणी_वार्ता"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://bho.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "bho"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BnConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BnConfig extends TemplateConfig { 22 | public BnConfig() { 23 | addNamespaceAlias(-2, "মিডিয়া"); 24 | addNamespaceAlias(-1, "বিশেষ"); 25 | addNamespaceAlias(1, "আলাপ"); 26 | addNamespaceAlias(2, "ব্যবহারকারী"); 27 | addNamespaceAlias(3, "ব্যবহারকারী_আলাপ"); 28 | addNamespaceAlias(5, "Wikipedia_আলোচনা", "Wikipedia_আলাপ"); 29 | addNamespaceAlias(6, "চিত্র"); 30 | addNamespaceAlias(7, "চিত্র_আলোচনা", "চিত্র_আলাপ", "MediaWiki_আলাপ"); 31 | addNamespaceAlias(8, "মিডিয়াউইকি"); 32 | addNamespaceAlias(9, "মিডিয়াউইকি_আলোচনা"); 33 | addNamespaceAlias(10, "টেমপ্লেট"); 34 | addNamespaceAlias(11, "টেমপ্লেট_আলোচনা"); 35 | addNamespaceAlias(12, "সাহায্য"); 36 | addNamespaceAlias(13, "সাহায্য_আলোচনা"); 37 | addNamespaceAlias(14, "বিষয়শ্রেণী"); 38 | addNamespaceAlias(15, "বিষয়শ্রেণী_আলোচনা"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://bn.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "bn"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BoConfig extends TemplateConfig { 22 | public BoConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://bo.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "bo"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/BpyConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class BpyConfig extends TemplateConfig { 22 | public BpyConfig() { 23 | addNamespaceAlias(-2, "মিডিয়া", "মিডিয়া"); 24 | addNamespaceAlias(-1, "বিশেষ", "বিশেষ"); 25 | addNamespaceAlias(1, "য়্যারী", "আলাপ"); 26 | addNamespaceAlias(2, "আতাকুরা", "ব্যবহারকারী"); 27 | addNamespaceAlias(3, "আতাকুরার_য়্যারী", "ব্যবহারকারী_আলাপ"); 28 | addNamespaceAlias(5, "Wikipedia_য়্যারী", "Wikipedia_আলোচনা", "Wikipedia_আলাপ"); 29 | addNamespaceAlias(6, "ছবি", "চিত্র"); 30 | addNamespaceAlias(7, "ছবি_য়্যারী", "চিত্র_আলোচনা", "চিত্র_আলাপ", "MediaWiki_আলাপ"); 31 | addNamespaceAlias(8, "মিডিয়াউইকি", "মিডিয়াউইকি"); 32 | addNamespaceAlias(9, "মিডিয়াউইকির_য়্যারী", "মিডিয়াউইকি_আলোচনা"); 33 | addNamespaceAlias(10, "মডেল", "টেমপ্লেট"); 34 | addNamespaceAlias(11, "মডেলর_য়্যারী", "টেমপ্লেট_আলোচনা"); 35 | addNamespaceAlias(12, "পাংলাক", "সাহায্য"); 36 | addNamespaceAlias(13, "পাংলাকর_য়্যারী", "সাহায্য_আলোচনা"); 37 | addNamespaceAlias(14, "থাক", "বিষয়শ্রেণী"); 38 | addNamespaceAlias(15, "থাকর_য়্যারী", "বিষয়শ্রেণী_আলোচনা"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://bpy.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "bpy"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/CaConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class CaConfig extends TemplateConfig { 22 | public CaConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Especial"); 25 | addNamespaceAlias(1, "Discussió"); 26 | addNamespaceAlias(2, "Usuari"); 27 | addNamespaceAlias(3, "Usuari_Discussió"); 28 | addNamespaceAlias(5, "Wikipedia_Discussió"); 29 | addNamespaceAlias(6, "Fitxer", "Imatge"); 30 | addNamespaceAlias(7, "Fitxer_Discussió", "Imatge_Discussió"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_Discussió"); 33 | addNamespaceAlias(10, "Plantilla"); 34 | addNamespaceAlias(11, "Plantilla_Discussió"); 35 | addNamespaceAlias(12, "Ajuda"); 36 | addNamespaceAlias(13, "Ajuda_Discussió"); 37 | addNamespaceAlias(14, "Categoria"); 38 | addNamespaceAlias(15, "Categoria_Discussió"); 39 | 40 | addI18nAlias("numberofarticles", "NOMBRED'ARTICLES", "NUMBEROFARTICLES"); 41 | addI18nAlias("numberoffiles", "NOMBRED'ARXIUS", "NUMBEROFFILES"); 42 | addI18nAlias("numberofusers", "NOMBRED'USUARIS", "NUMBEROFUSERS"); 43 | addI18nAlias("numberofedits", "NOMBRED'EDICIONS", "NUMBEROFEDITS"); 44 | addI18nAlias("pagename", "NOMDELAPLANA", "PAGENAME"); 45 | addI18nAlias("img_right", "dreta", "right"); 46 | addI18nAlias("img_left", "esquerra", "left"); 47 | addI18nAlias("img_border", "vora", "border"); 48 | addI18nAlias("img_link", "enllaç=$1", "link=$1"); 49 | addI18nAlias("displaytitle", "TÍTOL", "DISPLAYTITLE"); 50 | addI18nCIAlias("language", "#IDIOMA:", "#LANGUAGE:"); 51 | addI18nCIAlias("special", "especial", "special"); 52 | addI18nAlias("defaultsort", "ORDENA:", "DEFAULTSORT:", "DEFAULTSORTKEY:", "DEFAULTCATEGORYSORT:"); 53 | addI18nAlias("pagesize", "MIDADELAPLANA", "PAGESIZE"); 54 | } 55 | 56 | @Override 57 | protected String getSiteName() { 58 | return "Wikipedia"; 59 | } 60 | 61 | @Override 62 | protected String getWikiUrl() { 63 | return "http://ca.wikipedia.org/"; 64 | } 65 | 66 | @Override 67 | public String getIso639() { 68 | return "ca"; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/CebConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class CebConfig extends TemplateConfig { 22 | public CebConfig() { 23 | addNamespaceAlias(-2, "Medya"); 24 | addNamespaceAlias(-1, "Espesyal"); 25 | addNamespaceAlias(1, "Hisgot"); 26 | addNamespaceAlias(2, "Gumagamit"); 27 | addNamespaceAlias(3, "Hisgot_sa_Gumagamit"); 28 | addNamespaceAlias(5, "Hisgot_sa_Wikipedia", "Hisgot_saWikipedia"); 29 | addNamespaceAlias(6, "Payl", "Imahen"); 30 | addNamespaceAlias(7, "Hisgot_sa_Payl", "Hisgot_sa_Imahen"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Hisgot_sa_MediaWiki"); 33 | addNamespaceAlias(10, "Plantilya"); 34 | addNamespaceAlias(11, "Hisgot_sa_Plantilya"); 35 | addNamespaceAlias(12, "Tabang"); 36 | addNamespaceAlias(13, "Hisgot_sa_Tabang"); 37 | addNamespaceAlias(14, "Kategoriya"); 38 | addNamespaceAlias(15, "Hisgot_sa_Kategoriya"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ceb.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ceb"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/ChConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class ChConfig extends TemplateConfig { 22 | public ChConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Espesiat"); 25 | addNamespaceAlias(1, "Kombetsasion"); 26 | addNamespaceAlias(2, "Muna'sesetbi"); 27 | addNamespaceAlias(3, "Kombetsasion_ni_muna'sesetbi"); 28 | addNamespaceAlias(5, "Kombetsasion_nu_Wikipedia"); 29 | addNamespaceAlias(6, "Litratu"); 30 | addNamespaceAlias(7, "Kombetsasion_ni_litratu"); 31 | addNamespaceAlias(12, "Ayudo"); 32 | addNamespaceAlias(13, "Kombetsasion_ni_ayudo"); 33 | addNamespaceAlias(14, "Katigoria"); 34 | addNamespaceAlias(15, "Kombetsasion_ni_katigoria"); 35 | 36 | } 37 | 38 | @Override 39 | protected String getSiteName() { 40 | return "Wikipedia"; 41 | } 42 | 43 | @Override 44 | protected String getWikiUrl() { 45 | return "http://ch.wikipedia.org/"; 46 | } 47 | 48 | @Override 49 | public String getIso639() { 50 | return "ch"; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/CkbConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class CkbConfig extends TemplateConfig { 22 | public CkbConfig() { 23 | addNamespaceAlias(-2, "میدیا"); 24 | addNamespaceAlias(-1, "تایبەت"); 25 | addNamespaceAlias(0, ""); 26 | addNamespaceAlias(1, "وتووێژ", "لێدوان"); 27 | addNamespaceAlias(2, "بەکارھێنەر"); 28 | addNamespaceAlias(3, "لێدوانی_بەکارھێنەر", "قسەی_بەکارھێنەر"); 29 | addNamespaceAlias(5, "لێدوانی_Wikipedia"); 30 | addNamespaceAlias(6, "پەڕگە"); 31 | addNamespaceAlias(7, "وتووێژی_پەڕگە", "لێدوانی_پەڕگە"); 32 | addNamespaceAlias(8, "میدیاویکی"); 33 | addNamespaceAlias(9, "وتووێژی_میدیاویکی", "لێدوانی_میدیاویکی"); 34 | addNamespaceAlias(10, "داڕێژە", "قاڵب"); 35 | addNamespaceAlias(11, "وتووێژی_داڕێژە", "لێدوانی_قاڵب", "لێدوانی_داڕێژە"); 36 | addNamespaceAlias(12, "یارمەتی"); 37 | addNamespaceAlias(13, "وتووێژی_یارمەتی", "لێدوانی_یارمەتی"); 38 | addNamespaceAlias(14, "پۆل"); 39 | addNamespaceAlias(15, "وتووێژی_پۆل", "لێدوانی_پۆل"); 40 | 41 | addI18nAlias("img_thumbnail", "وێنۆک", "thumbnail", "thumb"); 42 | addI18nAlias("img_right", "ڕاست", "right"); 43 | addI18nAlias("img_left", "چەپ", "left"); 44 | addI18nAlias("img_width", "$1پیکسڵ", "$1px"); 45 | addI18nAlias("img_center", "ناوەڕاست", "center", "centre"); 46 | addI18nAlias("img_framed", "چوارچێوە", "framed", "enframed", "frame"); 47 | addI18nAlias("img_frameless", "بێچوارچێوە", "frameless"); 48 | addI18nAlias("img_border", "سنوور", "border"); 49 | } 50 | 51 | @Override 52 | protected String getSiteName() { 53 | return "Wikipedia"; 54 | } 55 | 56 | @Override 57 | protected String getWikiUrl() { 58 | return "http://ckb.wikipedia.org/"; 59 | } 60 | 61 | @Override 62 | public String getIso639() { 63 | return "ckb"; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/CrhConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class CrhConfig extends TemplateConfig { 22 | public CrhConfig() { 23 | addNamespaceAlias(-2, "Media", "Медиа"); 24 | addNamespaceAlias(-1, "Mahsus", "Махсус"); 25 | addNamespaceAlias(1, "Muzakere", "Музакере"); 26 | addNamespaceAlias(2, "Qullanıcı", "Къулланыджы"); 27 | addNamespaceAlias(3, "Qullanıcı_muzakeresi", "Къулланыджы_музакереси"); 28 | addNamespaceAlias(5, "Wikipedia_muzakeresi", "Wikipedia_музакереси"); 29 | addNamespaceAlias(6, "Fayl", "Ресим", "Resim"); 30 | addNamespaceAlias(7, "Fayl_muzakeresi", "Ресим_музакереси", "Resim_muzakeresi"); 31 | addNamespaceAlias(8, "MediaViki", "МедиаВики"); 32 | addNamespaceAlias(9, "MediaViki_muzakeresi", "МедиаВики_музакереси"); 33 | addNamespaceAlias(10, "Şablon", "Шаблон"); 34 | addNamespaceAlias(11, "Şablon_muzakeresi", "Шаблон_музакереси"); 35 | addNamespaceAlias(12, "Yardım", "Ярдым"); 36 | addNamespaceAlias(13, "Yardım_muzakeresi", "Разговор_о_помоћи"); 37 | addNamespaceAlias(14, "Kategoriya", "Категория"); 38 | addNamespaceAlias(15, "Kategoriya_muzakeresi", "Категория_музакереси"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://crh.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "crh"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/CuConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class CuConfig extends TemplateConfig { 22 | public CuConfig() { 23 | addNamespaceAlias(-2, "Срѣдьства", "Срѣдьства"); 24 | addNamespaceAlias(-1, "Нарочьна", "Нарочьна"); 25 | addNamespaceAlias(1, "Бєсѣда", "Бесѣда"); 26 | addNamespaceAlias(2, "Польꙃєватєл҄ь", "Польѕевател҄ь"); 27 | addNamespaceAlias(3, "Польꙃєватєлꙗ_бєсѣда", "Польѕевател_бесѣда"); 28 | addNamespaceAlias(5, "{{GRAMMAR:genitive|Wikipedia}}_бєсѣда", "{{grammar:genitive|Wikipedia}}_бесѣда"); 29 | addNamespaceAlias(6, "Дѣло", "Ви́дъ", "Видъ"); 30 | addNamespaceAlias(7, "Дѣла_бєсѣда", "Ви́да_бєсѣ́да", "Вида_бесѣда"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_бєсѣда", "MediaWiki_бесѣда"); 33 | addNamespaceAlias(10, "Обраꙁьць", "Образьць"); 34 | addNamespaceAlias(11, "Обраꙁьца_бєсѣда", "Образьца_бесѣда"); 35 | addNamespaceAlias(12, "Помощь", "Помощь"); 36 | addNamespaceAlias(13, "Помощи_бєсѣда", "Помощи_бесѣда"); 37 | addNamespaceAlias(14, "Катигорїꙗ", "Катигорї"); 38 | addNamespaceAlias(15, "Катигорїѩ_бєсѣда", "Катигорїѩ_бесѣда"); 39 | 40 | addI18nCIAlias("redirect", "#ПРѢНАПРАВЛЄНИѤ", "#REDIRECT"); 41 | addI18nCIAlias("language", "#ѨꙀꙐКЪ:", "#LANGUAGE:"); 42 | } 43 | 44 | @Override 45 | protected String getSiteName() { 46 | return "Wikipedia"; 47 | } 48 | 49 | @Override 50 | protected String getWikiUrl() { 51 | return "http://cu.wikipedia.org/"; 52 | } 53 | 54 | @Override 55 | public String getIso639() { 56 | return "cu"; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/DaConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class DaConfig extends TemplateConfig { 22 | public DaConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Speciel"); 25 | addNamespaceAlias(1, "Diskussion"); 26 | addNamespaceAlias(2, "Bruger"); 27 | addNamespaceAlias(3, "Brugerdiskussion"); 28 | addNamespaceAlias(5, "Wikipedia_diskussion", "Wikipedia-diskussion"); 29 | addNamespaceAlias(6, "Fil", "Billede"); 30 | addNamespaceAlias(7, "Fildiskussion", "Billeddiskussion"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_diskussion", "MediaWiki-diskussion"); 33 | addNamespaceAlias(10, "Skabelon"); 34 | addNamespaceAlias(11, "Skabelondiskussion"); 35 | addNamespaceAlias(12, "Hjælp"); 36 | addNamespaceAlias(13, "Hjælp_diskussion", "Hjælp-diskussion"); 37 | addNamespaceAlias(14, "Kategori"); 38 | addNamespaceAlias(15, "Kategoridiskussion"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://da.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "da"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/DvConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class DvConfig extends TemplateConfig { 22 | public DvConfig() { 23 | addNamespaceAlias(-2, "މީޑިއާ"); 24 | addNamespaceAlias(-1, "ޚާއްސަ", "ހާއްޞަ"); 25 | addNamespaceAlias(0, ""); 26 | addNamespaceAlias(1, "ޚިޔާލު"); 27 | addNamespaceAlias(2, "މެމްބަރު"); 28 | addNamespaceAlias(3, "މެމްބަރުގެ_ވާހަކަ"); 29 | addNamespaceAlias(5, "Wikipediaގެ_ވާހަކަ"); 30 | addNamespaceAlias(6, "ފައިލު", "ފައިލް"); 31 | addNamespaceAlias(7, "ފައިލުގެ_ޚިޔާލު", "ފައިލް_ޚިޔާލު"); 32 | addNamespaceAlias(8, "މީޑިއާވިކީ"); 33 | addNamespaceAlias(9, "މިޑިއާވިކީ_ޚިޔާލު", "މީޑިޔާވިކި_ޚިޔާލު"); 34 | addNamespaceAlias(10, "ފަންވަތް"); 35 | addNamespaceAlias(11, "ފަންވަތުގެ_ޚިޔާލު", "ފަންވަތް_ޚިޔާލު"); 36 | addNamespaceAlias(12, "އެހީ"); 37 | addNamespaceAlias(13, "އެހީގެ_ޚިޔާލު", "އެހީ_ޚިޔާލު"); 38 | addNamespaceAlias(14, "ޤިސްމު"); 39 | addNamespaceAlias(15, "ޤިސްމުގެ_ޚިޔާލު", "ޤިސްމު_ޚިޔާލު"); 40 | 41 | } 42 | 43 | @Override 44 | protected String getSiteName() { 45 | return "Wikipedia"; 46 | } 47 | 48 | @Override 49 | protected String getWikiUrl() { 50 | return "http://dv.wikipedia.org/"; 51 | } 52 | 53 | @Override 54 | public String getIso639() { 55 | return "dv"; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/DzConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class DzConfig extends TemplateConfig { 22 | public DzConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://dz.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "dz"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/ExtConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class ExtConfig extends TemplateConfig { 22 | public ExtConfig() { 23 | addNamespaceAlias(10, "Prantilla"); 24 | 25 | } 26 | 27 | @Override 28 | protected String getSiteName() { 29 | return "Wikipedia"; 30 | } 31 | 32 | @Override 33 | protected String getWikiUrl() { 34 | return "http://ext.wikipedia.org/"; 35 | } 36 | 37 | @Override 38 | public String getIso639() { 39 | return "ext"; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/FoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class FoConfig extends TemplateConfig { 22 | public FoConfig() { 23 | addNamespaceAlias(-2, "Miðil"); 24 | addNamespaceAlias(-1, "Serstakt", "Serstakur"); 25 | addNamespaceAlias(1, "Kjak"); 26 | addNamespaceAlias(2, "Brúkari"); 27 | addNamespaceAlias(3, "Brúkarakjak", "Brúkari_kjak"); 28 | addNamespaceAlias(5, "Wikipedia-kjak", "Wikipedia_kjak"); 29 | addNamespaceAlias(6, "Mynd"); 30 | addNamespaceAlias(7, "Myndakjak", "Mynd_kjak"); 31 | addNamespaceAlias(8, "MediaWiki", "MidiaWiki"); 32 | addNamespaceAlias(9, "MediaWiki-kjak", "MidiaWiki_kjak"); 33 | addNamespaceAlias(10, "Fyrimynd"); 34 | addNamespaceAlias(11, "Fyrimyndakjak", "Fyrimynd_kjak"); 35 | addNamespaceAlias(12, "Hjálp"); 36 | addNamespaceAlias(13, "Hjálparkjak", "Hjálp_kjak"); 37 | addNamespaceAlias(14, "Bólkur"); 38 | addNamespaceAlias(15, "Bólkakjak", "Bólkur_kjak"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://fo.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "fo"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/FyConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class FyConfig extends TemplateConfig { 22 | public FyConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Wiki"); 25 | addNamespaceAlias(1, "Oerlis"); 26 | addNamespaceAlias(2, "Meidogger", "Brûker"); 27 | addNamespaceAlias(3, "Meidogger_oerlis", "Brûker_oerlis"); 28 | addNamespaceAlias(5, "Wikipedia_oerlis"); 29 | addNamespaceAlias(6, "Ofbyld"); 30 | addNamespaceAlias(7, "Ofbyld_oerlis"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_oerlis"); 33 | addNamespaceAlias(10, "Berjocht"); 34 | addNamespaceAlias(11, "Berjocht_oerlis"); 35 | addNamespaceAlias(12, "Hulp"); 36 | addNamespaceAlias(13, "Hulp_oerlis"); 37 | addNamespaceAlias(14, "Kategory"); 38 | addNamespaceAlias(15, "Kategory_oerlis"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://fy.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "fy"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/GdConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class GdConfig extends TemplateConfig { 22 | public GdConfig() { 23 | addNamespaceAlias(-2, "Meadhan"); 24 | addNamespaceAlias(-1, "Sònraichte"); 25 | addNamespaceAlias(1, "Deasbaireachd"); 26 | addNamespaceAlias(2, "Cleachdaiche"); 27 | addNamespaceAlias(3, "Deasbaireachd_a'_chleachdaiche"); 28 | addNamespaceAlias(5, "An_deasbaireachd_aig_Wikipedia"); 29 | addNamespaceAlias(6, "Faidhle"); 30 | addNamespaceAlias(7, "Deasbaireachd_an_fhaidhle"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Deasbaireachd_MediaWiki"); 33 | addNamespaceAlias(10, "Teamplaid"); 34 | addNamespaceAlias(11, "Deasbaireachd_na_teamplaid"); 35 | addNamespaceAlias(12, "Cobhair"); 36 | addNamespaceAlias(13, "Deasbaireachd_na_cobharach"); 37 | addNamespaceAlias(14, "Roinn-seòrsa"); 38 | addNamespaceAlias(15, "Deasbaireachd_na_roinn-seòrsa"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://gd.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "gd"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/GotConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class GotConfig extends TemplateConfig { 22 | public GotConfig() { 23 | addNamespaceAlias(2, "𐌽𐌹𐌿𐍄𐌰𐌽𐌳𐍃"); 24 | addNamespaceAlias(3, "𐌽𐌹𐌿𐍄𐌰𐌽𐌳𐌹𐍃_𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰"); 25 | addNamespaceAlias(5, "𐌸𐌹𐍃_Wikipedia_𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰"); 26 | addNamespaceAlias(6, "𐍆𐌴𐌹𐌻𐌰"); 27 | addNamespaceAlias(7, "𐍆𐌴𐌹𐌻𐌹𐌽𐍃_𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰"); 28 | addNamespaceAlias(10, "𐍆𐌰𐌿𐍂𐌰𐌼𐌴𐌻𐌴𐌹𐌽𐍃"); 29 | addNamespaceAlias(11, "𐍆𐌰𐌿𐍂𐌰𐌼𐌴𐌻𐌴𐌹𐌽𐌰𐌹𐍃_𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰"); 30 | addNamespaceAlias(12, "𐌷𐌹𐌻𐍀𐌰"); 31 | addNamespaceAlias(13, "𐌷𐌹𐌻𐍀𐍉𐍃_𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰"); 32 | addNamespaceAlias(14, "𐌷𐌰𐌽𐍃𐌰"); 33 | addNamespaceAlias(15, "𐌷𐌰𐌽𐍃𐍉𐍃_𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰"); 34 | 35 | } 36 | 37 | @Override 38 | protected String getSiteName() { 39 | return "Wikipedia"; 40 | } 41 | 42 | @Override 43 | protected String getWikiUrl() { 44 | return "http://got.wikipedia.org/"; 45 | } 46 | 47 | @Override 48 | public String getIso639() { 49 | return "got"; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/GrcConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class GrcConfig extends TemplateConfig { 22 | public GrcConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://grc.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "grc"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/GuConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class GuConfig extends TemplateConfig { 22 | public GuConfig() { 23 | addNamespaceAlias(-2, "દ્રશ્ય-શ્રાવ્ય_(મિડિયા)"); 24 | addNamespaceAlias(-1, "વિશેષ"); 25 | addNamespaceAlias(1, "ચર્ચા"); 26 | addNamespaceAlias(2, "સભ્ય"); 27 | addNamespaceAlias(3, "સભ્યની_ચર્ચા"); 28 | addNamespaceAlias(5, "Wikipedia_ચર્ચા"); 29 | addNamespaceAlias(6, "ચિત્ર"); 30 | addNamespaceAlias(7, "ચિત્રની_ચર્ચા"); 31 | addNamespaceAlias(8, "મીડિયાવિકિ"); 32 | addNamespaceAlias(9, "મીડિયાવિકિ_ચર્ચા"); 33 | addNamespaceAlias(10, "ઢાંચો"); 34 | addNamespaceAlias(11, "ઢાંચાની_ચર્ચા"); 35 | addNamespaceAlias(12, "મદદ"); 36 | addNamespaceAlias(13, "મદદની_ચર્ચા"); 37 | addNamespaceAlias(14, "શ્રેણી"); 38 | addNamespaceAlias(15, "શ્રેણીની_ચર્ચા"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://gu.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "gu"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/GvConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class GvConfig extends TemplateConfig { 22 | public GvConfig() { 23 | addNamespaceAlias(-2, "Meanyn"); 24 | addNamespaceAlias(-1, "Er_lheh"); 25 | addNamespaceAlias(1, "Resooney"); 26 | addNamespaceAlias(2, "Ymmydeyr"); 27 | addNamespaceAlias(3, "Resooney_ymmydeyr"); 28 | addNamespaceAlias(5, "Resooney_Wikipedia"); 29 | addNamespaceAlias(6, "Coadan"); 30 | addNamespaceAlias(7, "Resooney_coadan"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Resooney_MediaWiki"); 33 | addNamespaceAlias(10, "Clowan"); 34 | addNamespaceAlias(11, "Resooney_clowan"); 35 | addNamespaceAlias(12, "Cooney"); 36 | addNamespaceAlias(13, "Resooney_cooney"); 37 | addNamespaceAlias(14, "Ronney"); 38 | addNamespaceAlias(15, "Resooney_ronney"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://gv.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "gv"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/HiConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class HiConfig extends TemplateConfig { 22 | public HiConfig() { 23 | addNamespaceAlias(-2, "मीडिया"); 24 | addNamespaceAlias(-1, "विशेष"); 25 | addNamespaceAlias(1, "वार्ता"); 26 | addNamespaceAlias(2, "सदस्य"); 27 | addNamespaceAlias(3, "सदस्य_वार्ता"); 28 | addNamespaceAlias(5, "Wikipedia_वार्ता"); 29 | addNamespaceAlias(6, "चित्र"); 30 | addNamespaceAlias(7, "चित्र_वार्ता"); 31 | addNamespaceAlias(8, "मीडियाविकि"); 32 | addNamespaceAlias(9, "मीडियाविकि_वार्ता"); 33 | addNamespaceAlias(10, "साँचा"); 34 | addNamespaceAlias(11, "साँचा_वार्ता"); 35 | addNamespaceAlias(12, "सहायता"); 36 | addNamespaceAlias(13, "सहायता_वार्ता"); 37 | addNamespaceAlias(14, "श्रेणी"); 38 | addNamespaceAlias(15, "श्रेणी_वार्ता"); 39 | 40 | addI18nCIAlias("redirect", "#अनुप्रेषित", "#REDIRECT"); 41 | } 42 | 43 | @Override 44 | protected String getSiteName() { 45 | return "Wikipedia"; 46 | } 47 | 48 | @Override 49 | protected String getWikiUrl() { 50 | return "http://hi.wikipedia.org/"; 51 | } 52 | 53 | @Override 54 | public String getIso639() { 55 | return "hi"; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/HifConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class HifConfig extends TemplateConfig { 22 | public HifConfig() { 23 | addNamespaceAlias(-2, "saadhan"); 24 | addNamespaceAlias(-1, "khaas"); 25 | addNamespaceAlias(1, "baat"); 26 | addNamespaceAlias(2, "sadasya"); 27 | addNamespaceAlias(3, "sadasya_ke_baat"); 28 | addNamespaceAlias(5, "Wikipedia_baat"); 29 | addNamespaceAlias(6, "file"); 30 | addNamespaceAlias(7, "file_ke_baat"); 31 | addNamespaceAlias(9, "Mediawiki_ke_baat"); 32 | addNamespaceAlias(11, "Template_ke_baat"); 33 | addNamespaceAlias(12, "madat"); 34 | addNamespaceAlias(13, "madat_ke_baat"); 35 | addNamespaceAlias(14, "vibhag"); 36 | addNamespaceAlias(15, "voibhag_ke_baat"); 37 | 38 | } 39 | 40 | @Override 41 | protected String getSiteName() { 42 | return "Wikipedia"; 43 | } 44 | 45 | @Override 46 | protected String getWikiUrl() { 47 | return "http://hif.wikipedia.org/"; 48 | } 49 | 50 | @Override 51 | public String getIso639() { 52 | return "hif"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/IaConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class IaConfig extends TemplateConfig { 22 | public IaConfig() { 23 | addNamespaceAlias(-2, "Multimedia"); 24 | addNamespaceAlias(-1, "Special"); 25 | addNamespaceAlias(1, "Discussion"); 26 | addNamespaceAlias(2, "Usator"); 27 | addNamespaceAlias(3, "Discussion_Usator"); 28 | addNamespaceAlias(5, "Discussion_Wikipedia"); 29 | addNamespaceAlias(6, "File", "Imagine"); 30 | addNamespaceAlias(7, "Discussion_File", "Discussion_Imagine"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Discussion_MediaWiki"); 33 | addNamespaceAlias(10, "Patrono"); 34 | addNamespaceAlias(11, "Discussion_Patrono"); 35 | addNamespaceAlias(12, "Adjuta"); 36 | addNamespaceAlias(13, "Discussion_Adjuta"); 37 | addNamespaceAlias(14, "Categoria"); 38 | addNamespaceAlias(15, "Discussion_Categoria"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ia.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ia"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/IeConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class IeConfig extends TemplateConfig { 22 | public IeConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Special"); 25 | addNamespaceAlias(1, "Discussion"); 26 | addNamespaceAlias(2, "Usator"); 27 | addNamespaceAlias(3, "Usator_Discussion"); 28 | addNamespaceAlias(5, "Wikipedia_Discussion"); 29 | addNamespaceAlias(6, "File"); 30 | addNamespaceAlias(7, "File_Discussion"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_Discussion"); 33 | addNamespaceAlias(10, "Avise"); 34 | addNamespaceAlias(11, "Avise_Discussion"); 35 | addNamespaceAlias(12, "Auxilie"); 36 | addNamespaceAlias(13, "Auxilie_Discussion"); 37 | addNamespaceAlias(14, "Categorie"); 38 | addNamespaceAlias(15, "Categorie_Discussion"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ie.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ie"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/IgConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class IgConfig extends TemplateConfig { 22 | public IgConfig() { 23 | addNamespaceAlias(-2, "Midia", "Nká"); 24 | addNamespaceAlias(-1, "Ihü_kárírí"); 25 | addNamespaceAlias(1, "Okwu"); 26 | addNamespaceAlias(2, "Ọbanife", "Ọ'bànifé"); 27 | addNamespaceAlias(3, "Okwu_ọbanife", "Okwu_ọ'bànifé"); 28 | addNamespaceAlias(5, "Okwu_Wikipedia"); 29 | addNamespaceAlias(6, "Usòrò", "Ákwúkwó_orünotu"); 30 | addNamespaceAlias(7, "Okwu_usòrò", "Okwu_ákwúkwó_orünotu"); 31 | addNamespaceAlias(8, "MidiaWiki", "NkáWiki"); 32 | addNamespaceAlias(9, "Okwu_MidiaWiki", "Okwu_NkáWiki"); 33 | addNamespaceAlias(10, "Àtụ"); 34 | addNamespaceAlias(11, "Okwu_àtụ"); 35 | addNamespaceAlias(12, "Nkwadọ", "Nkwádọ"); 36 | addNamespaceAlias(13, "Okwu_nkwadọ", "Okwu_nkwádọ"); 37 | addNamespaceAlias(14, "Òtù", "Ébéonọr"); 38 | addNamespaceAlias(15, "Okwu_òtù", "Okwu_ébéonọr"); 39 | 40 | addI18nCIAlias("redirect", "#KÚFÙ", "#REDIRECT"); 41 | addI18nAlias("fullpagename", "ÁHÀNÍLÉNKÈIHÜ", "FULLPAGENAME"); 42 | addI18nCIAlias("msg", "OZI:", "MSG:"); 43 | addI18nAlias("img_right", "áká_ịkẹngạ", "right"); 44 | addI18nAlias("img_left", "áká_èkpè", "left"); 45 | addI18nAlias("img_top", "élú", "top"); 46 | addI18nAlias("img_middle", "ẹtítì", "middle"); 47 | addI18nAlias("img_text_bottom", "okpúrù-ede", "text-bottom"); 48 | addI18nAlias("displaytitle", "ZIÍSHÍ", "DISPLAYTITLE"); 49 | addI18nAlias("pagesize", "ÀSÁIHÜ", "PAGESIZE"); 50 | } 51 | 52 | @Override 53 | protected String getSiteName() { 54 | return "Wikipedia"; 55 | } 56 | 57 | @Override 58 | protected String getWikiUrl() { 59 | return "http://ig.wikipedia.org/"; 60 | } 61 | 62 | @Override 63 | public String getIso639() { 64 | return "ig"; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/IloConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class IloConfig extends TemplateConfig { 22 | public IloConfig() { 23 | addNamespaceAlias(-2, "Midia"); 24 | addNamespaceAlias(-1, "Espesial"); 25 | addNamespaceAlias(1, "Tungtungan"); 26 | addNamespaceAlias(2, "Agar-aramat"); 27 | addNamespaceAlias(3, "Agar-aramat_tungtungan"); 28 | addNamespaceAlias(5, "Wikipedia_tungtungan"); 29 | addNamespaceAlias(6, "Papeles"); 30 | addNamespaceAlias(7, "Papeles_tungtungan"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_tungtungan"); 33 | addNamespaceAlias(10, "Plantilia"); 34 | addNamespaceAlias(11, "Plantilia_tungtungan"); 35 | addNamespaceAlias(12, "Tulong"); 36 | addNamespaceAlias(13, "Tulong_tungtungan"); 37 | addNamespaceAlias(14, "Kategoria"); 38 | addNamespaceAlias(15, "Kategoria_tungtungan"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ilo.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ilo"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/IoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class IoConfig extends TemplateConfig { 22 | public IoConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Specala"); 25 | addNamespaceAlias(1, "Debato"); 26 | addNamespaceAlias(2, "Uzanto"); 27 | addNamespaceAlias(3, "Uzanto_Debato"); 28 | addNamespaceAlias(5, "Wikipedia_Debato"); 29 | addNamespaceAlias(6, "Arkivo", "Imajo"); 30 | addNamespaceAlias(7, "Arkivo_Debato", "Imajo_Debato"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_Debato"); 33 | addNamespaceAlias(10, "Shablono", "Modelo"); 34 | addNamespaceAlias(11, "Shablono_Debato", "Modelo_Debato"); 35 | addNamespaceAlias(12, "Helpo"); 36 | addNamespaceAlias(13, "Helpo_Debato"); 37 | addNamespaceAlias(14, "Kategorio"); 38 | addNamespaceAlias(15, "Kategorio_Debato"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://io.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "io"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/IuConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class IuConfig extends TemplateConfig { 22 | public IuConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://iu.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "iu"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/JutConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class JutConfig extends TemplateConfig { 22 | public JutConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Speciel"); 25 | addNamespaceAlias(1, "Diskussion"); 26 | addNamespaceAlias(2, "Bruger"); 27 | addNamespaceAlias(3, "Brugerdiskussion"); 28 | addNamespaceAlias(5, "Wikipedia_diskussion", "Wikipedia-diskussion"); 29 | addNamespaceAlias(6, "Fil", "Billede"); 30 | addNamespaceAlias(7, "Fildiskussion", "Billeddiskussion"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_diskussion", "MediaWiki-diskussion"); 33 | addNamespaceAlias(10, "Skabelon"); 34 | addNamespaceAlias(11, "Skabelondiskussion"); 35 | addNamespaceAlias(12, "Hjælp"); 36 | addNamespaceAlias(13, "Hjælp_diskussion", "Hjælp-diskussion"); 37 | addNamespaceAlias(14, "Kategori"); 38 | addNamespaceAlias(15, "Kategoridiskussion"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://jut.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "jut"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KabConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KabConfig extends TemplateConfig { 22 | public KabConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Uslig"); 25 | addNamespaceAlias(1, "Mmeslay"); 26 | addNamespaceAlias(2, "Amseqdac"); 27 | addNamespaceAlias(3, "Amyannan_umsqedac"); 28 | addNamespaceAlias(5, "Amyannan_n_Wikipedia"); 29 | addNamespaceAlias(6, "Tugna"); 30 | addNamespaceAlias(7, "Amyannan_n_tugna"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Amyannan_n_MediaWiki"); 33 | addNamespaceAlias(10, "Talɣa", "Talγa"); 34 | addNamespaceAlias(11, "Amyannan_n_talɣa", "Amyannan_n_talγa"); 35 | addNamespaceAlias(12, "Tallat"); 36 | addNamespaceAlias(13, "Amyannan_n_tallat"); 37 | addNamespaceAlias(14, "Taggayt"); 38 | addNamespaceAlias(15, "Amyannan_n_taggayt"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://kab.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "kab"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KbdConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KbdConfig extends TemplateConfig { 22 | public KbdConfig() { 23 | addNamespaceAlias(-2, "Медиа"); 24 | addNamespaceAlias(-1, "Служебная"); 25 | addNamespaceAlias(1, "Тепсэлъэхьыгъуэ", "Обсуждение"); 26 | addNamespaceAlias(2, "ЦӀыхухэт", "Участник"); 27 | addNamespaceAlias(3, "ЦӀыхухэт_тепсэлъэхьыгъуэ", "Обсуждение_участника"); 28 | addNamespaceAlias(5, "Wikipedia_тепсэлъэхьыгъуэ", "Обсуждение_{{GRAMMAR:genitive|Wikipedia}}"); 29 | addNamespaceAlias(6, "Файл"); 30 | addNamespaceAlias(7, "Файл_тепсэлъэхьыгъуэ", "Обсуждение_файла"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_тепсэлъэхьыгъуэ", "Обсуждение_MediaWiki"); 33 | addNamespaceAlias(10, "Шаблон"); 34 | addNamespaceAlias(11, "Шаблон_тепсэлъэхьыгъуэ", "Обсуждение_шаблона"); 35 | addNamespaceAlias(12, "ДэӀэпыкъуэгъуэ", "Справка"); 36 | addNamespaceAlias(13, "ДэӀэпыкъуэгъуэ_тепсэлъэхьыгъуэ", "Обсуждение_справки"); 37 | addNamespaceAlias(14, "Категориэ", "Категория"); 38 | addNamespaceAlias(15, "Категориэ_тепсэлъэхьыгъуэ", "Обсуждение_категории"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://kbd.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "kbd"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KgConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KgConfig extends TemplateConfig { 22 | public KgConfig() { 23 | addNamespaceAlias(1, "Disolo"); 24 | addNamespaceAlias(2, "Kisadi"); 25 | addNamespaceAlias(3, "Disolo_kisadi"); 26 | addNamespaceAlias(5, "Disolo_Wikipedia"); 27 | addNamespaceAlias(6, "Fisye"); 28 | addNamespaceAlias(7, "Disolo_fisye"); 29 | addNamespaceAlias(12, "Lusadisu"); 30 | addNamespaceAlias(13, "Disolo_lusadisu"); 31 | addNamespaceAlias(14, "Kalasi"); 32 | addNamespaceAlias(15, "Disolo_kalasi"); 33 | 34 | } 35 | 36 | @Override 37 | protected String getSiteName() { 38 | return "Wikipedia"; 39 | } 40 | 41 | @Override 42 | protected String getWikiUrl() { 43 | return "http://kg.wikipedia.org/"; 44 | } 45 | 46 | @Override 47 | public String getIso639() { 48 | return "kg"; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KlConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KlConfig extends TemplateConfig { 22 | public KlConfig() { 23 | addNamespaceAlias(-1, "Immikkut", "Speciel", "Speciel"); 24 | addNamespaceAlias(1, "Oqallinneq", "Diskussion", "Diskussion"); 25 | addNamespaceAlias(2, "Atuisoq", "Bruger", "Bruger"); 26 | addNamespaceAlias(3, "Atuisup_oqalliffia", "Brugerdiskussion", "Brugerdiskussion"); 27 | addNamespaceAlias(5, "Wikipedia-p_oqalliffia", "Wikipedia-diskussion", "Wikipediaip oqalliffia", "Wikipedia_diskussion", "Wikipedia-diskussion"); 28 | addNamespaceAlias(6, "Fiileq", "Fil", "Billede", "Fil", "Billede"); 29 | addNamespaceAlias(7, "Fiilip_oqalliffia", "Fildiskussion", "Billeddiskussion", "Fildiskussion", "Billeddiskussion"); 30 | addNamespaceAlias(8, "MediaWiki", "MediaWiki", "MediaWiki"); 31 | addNamespaceAlias(9, "Mediawikip_oqalliffia", "MediaWiki-diskussion", "MediaWiki_diskussion", "MediaWiki-diskussion"); 32 | addNamespaceAlias(10, "Ilisserut", "Skabelon", "Skabelon"); 33 | addNamespaceAlias(11, "Ilisserummi_oqallinneq", "Skabelondiskussion", "Skabelondiskussion"); 34 | addNamespaceAlias(12, "Ikiuutit", "Hjælp", "Hjælp"); 35 | addNamespaceAlias(13, "Ikiuutini_oqallinneq", "Hjælp-diskussion", "Hjælp_diskussion", "Hjælp-diskussion"); 36 | addNamespaceAlias(14, "Sumut_atassuseq", "Kategori", "Kategori"); 37 | addNamespaceAlias(15, "Sumut_atassusermi_oqallinneq", "Kategoridiskussion", "Kategoridiskussion"); 38 | addNamespaceAlias(-2, "Media"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://kl.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "kl"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KnConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KnConfig extends TemplateConfig { 22 | public KnConfig() { 23 | addNamespaceAlias(-2, "ಮೀಡಿಯ"); 24 | addNamespaceAlias(-1, "ವಿಶೇಷ"); 25 | addNamespaceAlias(1, "ಚರ್ಚೆಪುಟ"); 26 | addNamespaceAlias(2, "ಸದಸ್ಯ"); 27 | addNamespaceAlias(3, "ಸದಸ್ಯರ_ಚರ್ಚೆಪುಟ"); 28 | addNamespaceAlias(5, "Wikipedia_ಚರ್ಚೆ"); 29 | addNamespaceAlias(6, "ಚಿತ್ರ"); 30 | addNamespaceAlias(7, "ಚಿತ್ರ_ಚರ್ಚೆಪುಟ"); 31 | addNamespaceAlias(8, "ಮೀಡಿಯವಿಕಿ"); 32 | addNamespaceAlias(9, "ಮೀಡೀಯವಿಕಿ_ಚರ್ಚೆ"); 33 | addNamespaceAlias(10, "ಟೆಂಪ್ಲೇಟು"); 34 | addNamespaceAlias(11, "ಟೆಂಪ್ಲೇಟು_ಚರ್ಚೆ"); 35 | addNamespaceAlias(12, "ಸಹಾಯ"); 36 | addNamespaceAlias(13, "ಸಹಾಯ_ಚರ್ಚೆ"); 37 | addNamespaceAlias(14, "ವರ್ಗ"); 38 | addNamespaceAlias(15, "ವರ್ಗ_ಚರ್ಚೆ"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://kn.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "kn"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KsConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KsConfig extends TemplateConfig { 22 | public KsConfig() { 23 | addNamespaceAlias(-2, "میڈیا"); 24 | addNamespaceAlias(-1, "خاص"); 25 | addNamespaceAlias(0, ""); 26 | addNamespaceAlias(1, "بَحَژ"); 27 | addNamespaceAlias(2, "رُکُن"); 28 | addNamespaceAlias(3, "رُکُن_بَحَژ"); 29 | addNamespaceAlias(5, "Wikipedia_بَحَژ"); 30 | addNamespaceAlias(6, "فَیِل"); 31 | addNamespaceAlias(7, "فَیِل_بَحَژ"); 32 | addNamespaceAlias(8, "میڈیاوکی"); 33 | addNamespaceAlias(9, "میڈیاوکی_بَحَژ"); 34 | addNamespaceAlias(10, "فرما"); 35 | addNamespaceAlias(11, "فرما_بَحَژ"); 36 | addNamespaceAlias(12, "پَلزُن"); 37 | addNamespaceAlias(13, "پَلزُن_بَحَژ"); 38 | addNamespaceAlias(14, "زٲژ"); 39 | addNamespaceAlias(15, "زٲژ_بَحَژ"); 40 | 41 | } 42 | 43 | @Override 44 | protected String getSiteName() { 45 | return "Wikipedia"; 46 | } 47 | 48 | @Override 49 | protected String getWikiUrl() { 50 | return "http://ks.wikipedia.org/"; 51 | } 52 | 53 | @Override 54 | public String getIso639() { 55 | return "ks"; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/KyConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class KyConfig extends TemplateConfig { 22 | public KyConfig() { 23 | addNamespaceAlias(-2, "Медиа"); 24 | addNamespaceAlias(-1, "Атайын"); 25 | addNamespaceAlias(1, "Баарлашуу"); 26 | addNamespaceAlias(2, "Колдонуучу"); 27 | addNamespaceAlias(3, "Колдонуучунун_баарлашуулары"); 28 | addNamespaceAlias(5, "Wikipedia_баарлашуу"); 29 | addNamespaceAlias(6, "Файл"); 30 | addNamespaceAlias(8, "MediaWiki"); 31 | addNamespaceAlias(10, "Калып"); 32 | addNamespaceAlias(12, "Жардам"); 33 | addNamespaceAlias(14, "Категория"); 34 | 35 | } 36 | 37 | @Override 38 | protected String getSiteName() { 39 | return "Wikipedia"; 40 | } 41 | 42 | @Override 43 | protected String getWikiUrl() { 44 | return "http://ky.wikipedia.org/"; 45 | } 46 | 47 | @Override 48 | public String getIso639() { 49 | return "ky"; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LaConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LaConfig extends TemplateConfig { 22 | public LaConfig() { 23 | addNamespaceAlias(-1, "Specialis"); 24 | addNamespaceAlias(1, "Disputatio"); 25 | addNamespaceAlias(2, "Usor"); 26 | addNamespaceAlias(3, "Disputatio_Usoris"); 27 | addNamespaceAlias(5, "Disputatio_{{GRAMMAR:genitive|Wikipedia}}"); 28 | addNamespaceAlias(6, "Fasciculus", "Imago"); 29 | addNamespaceAlias(7, "Disputatio_Fasciculi", "Disputatio_Imaginis"); 30 | addNamespaceAlias(8, "MediaWiki"); 31 | addNamespaceAlias(9, "Disputatio_MediaWiki"); 32 | addNamespaceAlias(10, "Formula"); 33 | addNamespaceAlias(11, "Disputatio_Formulae"); 34 | addNamespaceAlias(12, "Auxilium"); 35 | addNamespaceAlias(13, "Disputatio_Auxilii"); 36 | addNamespaceAlias(14, "Categoria"); 37 | addNamespaceAlias(15, "Disputatio_Categoriae"); 38 | 39 | } 40 | 41 | @Override 42 | protected String getSiteName() { 43 | return "Wikipedia"; 44 | } 45 | 46 | @Override 47 | protected String getWikiUrl() { 48 | return "http://la.wikipedia.org/"; 49 | } 50 | 51 | @Override 52 | public String getIso639() { 53 | return "la"; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LfnConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LfnConfig extends TemplateConfig { 22 | public LfnConfig() { 23 | addNamespaceAlias(-1, "Spesial"); 24 | addNamespaceAlias(1, "Discute"); 25 | addNamespaceAlias(2, "Usor"); 26 | addNamespaceAlias(3, "Usor_Discute"); 27 | addNamespaceAlias(5, "Wikipedia_Discute"); 28 | addNamespaceAlias(6, "Fix"); 29 | addNamespaceAlias(7, "Fix_Discute"); 30 | addNamespaceAlias(10, "Model"); 31 | addNamespaceAlias(11, "Model_Discute"); 32 | addNamespaceAlias(12, "Aida"); 33 | addNamespaceAlias(13, "Aida_Discute"); 34 | addNamespaceAlias(14, "Categoria"); 35 | addNamespaceAlias(15, "Categoria_Discute"); 36 | 37 | } 38 | 39 | @Override 40 | protected String getSiteName() { 41 | return "Wikipedia"; 42 | } 43 | 44 | @Override 45 | protected String getWikiUrl() { 46 | return "http://lfn.wikipedia.org/"; 47 | } 48 | 49 | @Override 50 | public String getIso639() { 51 | return "lfn"; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LoConfig extends TemplateConfig { 22 | public LoConfig() { 23 | addNamespaceAlias(-2, "ສື່", "ສື່ອ"); 24 | addNamespaceAlias(-1, "ພິເສດ"); 25 | addNamespaceAlias(1, "ສົນທະນາ"); 26 | addNamespaceAlias(2, "ຜູ້ໃຊ້"); 27 | addNamespaceAlias(3, "ສົນທະນາຂອງຜູ້ໃຊ້"); 28 | addNamespaceAlias(5, "ສົນທະນາກ່ຽວກັບWikipedia"); 29 | addNamespaceAlias(6, "ຮູບ"); 30 | addNamespaceAlias(7, "ສົນທະນາກ່ຽວກັບຮູບ"); 31 | addNamespaceAlias(8, "ມີເດຍວິກິ"); 32 | addNamespaceAlias(9, "ສົນທະນາກ່ຽວກັບມີເດຍວິກິ"); 33 | addNamespaceAlias(10, "ແມ່ແບບ"); 34 | addNamespaceAlias(11, "ສົນທະນາກ່ຽວກັບແມ່ແບບ"); 35 | addNamespaceAlias(12, "ຊ່ວຍເຫຼືອ"); 36 | addNamespaceAlias(13, "ສົນທະນາກ່ຽວກັບຊ່ວຍເຫຼືອ"); 37 | addNamespaceAlias(14, "ໝວດ"); 38 | addNamespaceAlias(15, "ສົນທະນາກ່ຽວກັບໝວດ"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://lo.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "lo"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LrcConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LrcConfig extends TemplateConfig { 22 | public LrcConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://lrc.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "lrc"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LtgConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LtgConfig extends TemplateConfig { 22 | public LtgConfig() { 23 | addNamespaceAlias(-2, "Medeja", "Media"); 24 | addNamespaceAlias(-1, "Seviškuo", "Special"); 25 | addNamespaceAlias(1, "Sprīža", "Diskusija"); 26 | addNamespaceAlias(2, "Lītuotuojs", "Lietotājs"); 27 | addNamespaceAlias(3, "Sprīža_ap_lītuotuoju", "Lietotāja_diskusija"); 28 | addNamespaceAlias(5, "Sprīža_ap_{{GRAMMAR:accusative|Wikipedia}}", "{{grammar:ģenitīvs|Wikipedia}}_diskusija"); 29 | addNamespaceAlias(6, "Fails", "Attēls"); 30 | addNamespaceAlias(7, "Sprīža_ap_failu", "Attēla_diskusija"); 31 | addNamespaceAlias(8, "MediaWiki", "MediaWiki"); 32 | addNamespaceAlias(9, "Sprīža_ap_MediaWiki", "MediaWiki_diskusija"); 33 | addNamespaceAlias(10, "Taiss", "Veidne"); 34 | addNamespaceAlias(11, "Sprīža_ap_taisu", "Veidnes_diskusija"); 35 | addNamespaceAlias(12, "Paleigs", "Palīdzība"); 36 | addNamespaceAlias(13, "Sprīža_ap_paleigu", "Palīdzības_diskusija"); 37 | addNamespaceAlias(14, "Kategoreja", "Kategorija"); 38 | addNamespaceAlias(15, "Sprīža_ap_kategoreju", "Kategorijas_diskusija"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ltg.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ltg"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LvConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LvConfig extends TemplateConfig { 22 | public LvConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Special"); 25 | addNamespaceAlias(1, "Diskusija"); 26 | addNamespaceAlias(2, "Lietotājs"); 27 | addNamespaceAlias(3, "Lietotāja_diskusija"); 28 | addNamespaceAlias(5, "{{grammar:ģenitīvs|Wikipedia}}_diskusija"); 29 | addNamespaceAlias(6, "Attēls"); 30 | addNamespaceAlias(7, "Attēla_diskusija"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_diskusija"); 33 | addNamespaceAlias(10, "Veidne"); 34 | addNamespaceAlias(11, "Veidnes_diskusija"); 35 | addNamespaceAlias(12, "Palīdzība"); 36 | addNamespaceAlias(13, "Palīdzības_diskusija"); 37 | addNamespaceAlias(14, "Kategorija"); 38 | addNamespaceAlias(15, "Kategorijas_diskusija"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://lv.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "lv"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/LzhConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class LzhConfig extends TemplateConfig { 22 | public LzhConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://lzh.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "lzh"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/MaiConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class MaiConfig extends TemplateConfig { 22 | public MaiConfig() { 23 | addNamespaceAlias(-2, "मेडिया", "मीडिया"); 24 | addNamespaceAlias(-1, "विशेष", "विशेष"); 25 | addNamespaceAlias(1, "वार्ता", "वार्ता"); 26 | addNamespaceAlias(2, "प्रयोगकर्ता", "सदस्य"); 27 | addNamespaceAlias(3, "प्रयोगकर्ता_वार्ता", "सदस्य_वार्ता"); 28 | addNamespaceAlias(5, "Wikipedia_वार्ता", "Wikipedia_वार्ता"); 29 | addNamespaceAlias(6, "फाइल", "चित्र"); 30 | addNamespaceAlias(7, "फाइल_वार्ता", "चित्र_वार्ता"); 31 | addNamespaceAlias(8, "मेडियाविकि", "मीडियाविकि"); 32 | addNamespaceAlias(9, "मेडियाविकि_वार्ता", "मीडियाविकि_वार्ता"); 33 | addNamespaceAlias(10, "आकृति", "साँचा"); 34 | addNamespaceAlias(11, "आकृति_वार्ता", "साँचा_वार्ता"); 35 | addNamespaceAlias(12, "मद्दत", "सहायता"); 36 | addNamespaceAlias(13, "मद्दत_वार्ता", "सहायता_वार्ता"); 37 | addNamespaceAlias(14, "श्रेणी", "श्रेणी"); 38 | addNamespaceAlias(15, "श्रेणी_वार्ता", "श्रेणी_वार्ता"); 39 | 40 | addI18nCIAlias("redirect", "#अनुप्रेषित", "#REDIRECT"); 41 | } 42 | 43 | @Override 44 | protected String getSiteName() { 45 | return "Wikipedia"; 46 | } 47 | 48 | @Override 49 | protected String getWikiUrl() { 50 | return "http://mai.wikipedia.org/"; 51 | } 52 | 53 | @Override 54 | public String getIso639() { 55 | return "mai"; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/MdfConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class MdfConfig extends TemplateConfig { 22 | public MdfConfig() { 23 | addNamespaceAlias(-2, "Медиа"); 24 | addNamespaceAlias(-1, "Башка", "Служебная"); 25 | addNamespaceAlias(1, "Корхнема", "Обсуждение"); 26 | addNamespaceAlias(2, "Тиись", "Участник"); 27 | addNamespaceAlias(3, "Тиись_корхнема", "Обсуждение_участника"); 28 | addNamespaceAlias(5, "Wikipedia_корхнема", "Обсуждение_{{GRAMMAR:genitive|Wikipedia}}"); 29 | addNamespaceAlias(6, "Няйф", "Изображение"); 30 | addNamespaceAlias(7, "Няйф_корхнема", "Обсуждение_изображения"); 31 | addNamespaceAlias(8, "МедиаВики", "MediaWiki"); 32 | addNamespaceAlias(9, "МедиаВики_корхнема", "Обсуждение_MediaWiki"); 33 | addNamespaceAlias(10, "Шаблон", "Шаблон"); 34 | addNamespaceAlias(11, "Шаблон_корхнема", "Обсуждение_шаблона"); 35 | addNamespaceAlias(12, "Лезкс", "Справка"); 36 | addNamespaceAlias(13, "Лезкс_корхнема", "Обсуждение_справки"); 37 | addNamespaceAlias(14, "Категорие", "Категория"); 38 | addNamespaceAlias(15, "Категорие_корхнема", "Обсуждение_категории"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://mdf.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "mdf"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/MnConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class MnConfig extends TemplateConfig { 22 | public MnConfig() { 23 | addNamespaceAlias(-2, "Медиа"); 24 | addNamespaceAlias(-1, "Тусгай"); 25 | addNamespaceAlias(1, "Хэлэлцүүлэг"); 26 | addNamespaceAlias(2, "Хэрэглэгч"); 27 | addNamespaceAlias(3, "Хэрэглэгчийн_яриа"); 28 | addNamespaceAlias(5, "Wikipedia-н_хэлэлцүүлэг"); 29 | addNamespaceAlias(6, "Файл", "Зураг"); 30 | addNamespaceAlias(7, "Файлын_хэлэлцүүлэг", "Зургийн_хэлэлцүүлэг"); 31 | addNamespaceAlias(8, "МедиаВики"); 32 | addNamespaceAlias(9, "МедиаВикигийн_хэлэлцүүлэг"); 33 | addNamespaceAlias(10, "Загвар"); 34 | addNamespaceAlias(11, "Загварын_хэлэлцүүлэг"); 35 | addNamespaceAlias(12, "Тусламж"); 36 | addNamespaceAlias(13, "Тусламжийн_хэлэлцүүлэг"); 37 | addNamespaceAlias(14, "Ангилал"); 38 | addNamespaceAlias(15, "Ангиллын_хэлэлцүүлэг"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://mn.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "mn"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/MyConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class MyConfig extends TemplateConfig { 22 | public MyConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://my.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "my"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/NeConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class NeConfig extends TemplateConfig { 22 | public NeConfig() { 23 | addNamespaceAlias(-2, "मीडिया"); 24 | addNamespaceAlias(-1, "विशेष"); 25 | addNamespaceAlias(1, "वार्तालाप"); 26 | addNamespaceAlias(2, "प्रयोगकर्ता"); 27 | addNamespaceAlias(3, "प्रयोगकर्ता_वार्ता"); 28 | addNamespaceAlias(5, "Wikipedia_वार्ता"); 29 | addNamespaceAlias(6, "चित्र"); 30 | addNamespaceAlias(7, "चित्र_वार्ता"); 31 | addNamespaceAlias(8, "मीडियाविकि"); 32 | addNamespaceAlias(9, "मीडियाविकि_वार्ता"); 33 | addNamespaceAlias(10, "ढाँचा"); 34 | addNamespaceAlias(11, "ढाँचा_वार्ता"); 35 | addNamespaceAlias(12, "मद्दत"); 36 | addNamespaceAlias(13, "मद्दत_वार्ता"); 37 | addNamespaceAlias(14, "श्रेणी"); 38 | addNamespaceAlias(15, "श्रेणी_वार्ता"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://ne.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "ne"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/NewConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class NewConfig extends TemplateConfig { 22 | public NewConfig() { 23 | addNamespaceAlias(-2, "माध्यम"); 24 | addNamespaceAlias(-1, "विशेष"); 25 | addNamespaceAlias(1, "खँलाबँला"); 26 | addNamespaceAlias(2, "छ्येलेमि"); 27 | addNamespaceAlias(3, "छ्येलेमि_खँलाबँला"); 28 | addNamespaceAlias(5, "Wikipedia_खँलाबँला"); 29 | addNamespaceAlias(6, "किपा"); 30 | addNamespaceAlias(7, "किपा_खँलाबँला"); 31 | addNamespaceAlias(8, "मिडियाविकि"); 32 | addNamespaceAlias(9, "मिडियाविकि_खँलाबँला"); 33 | addNamespaceAlias(12, "ग्वाहालि"); 34 | addNamespaceAlias(13, "ग्वाहालि_खँलाबँला"); 35 | addNamespaceAlias(14, "पुचः"); 36 | addNamespaceAlias(15, "पुचः_खँलाबँला"); 37 | 38 | } 39 | 40 | @Override 41 | protected String getSiteName() { 42 | return "Wikipedia"; 43 | } 44 | 45 | @Override 46 | protected String getWikiUrl() { 47 | return "http://new.wikipedia.org/"; 48 | } 49 | 50 | @Override 51 | public String getIso639() { 52 | return "new"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/NsoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class NsoConfig extends TemplateConfig { 22 | public NsoConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Special"); 25 | addNamespaceAlias(1, "Bolediša"); 26 | addNamespaceAlias(2, "Mošomi"); 27 | addNamespaceAlias(3, "Boledišana_le_Mošomi"); 28 | addNamespaceAlias(5, "Wikipedia_Poledišano"); 29 | addNamespaceAlias(6, "Seswantšho"); 30 | addNamespaceAlias(7, "Poledišano_ya_Seswantšho"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Poledišano_ya_MediaWiki"); 33 | addNamespaceAlias(10, "Template"); 34 | addNamespaceAlias(11, "Poledišano_ya_Template"); 35 | addNamespaceAlias(12, "Thušo"); 36 | addNamespaceAlias(13, "Poledišano_ya_Thušo"); 37 | addNamespaceAlias(14, "Setensele"); 38 | addNamespaceAlias(15, "Poledišano_ya_Setensele"); 39 | 40 | addI18nAlias("currentmonth", "KGWEDI_BJALE", "CURRENTMONTH", "CURRENTMONTH2"); 41 | addI18nAlias("currentmonthname", "LEINA_KGWEDI_BJALE", "CURRENTMONTHNAME"); 42 | addI18nAlias("currentday", "LEHONO_LETSATSI", "CURRENTDAY"); 43 | addI18nAlias("currentday2", "LEHONO_LETSATSI2", "CURRENTDAY2"); 44 | addI18nAlias("currentdayname", "LEHONO_LETSATSILEINA", "CURRENTDAYNAME"); 45 | addI18nAlias("currentyear", "NGWAGA_BJALE", "CURRENTYEAR"); 46 | addI18nAlias("currenttime", "NAKO_BJALE", "CURRENTTIME"); 47 | addI18nAlias("currenthour", "IRI_BJALE", "CURRENTHOUR"); 48 | } 49 | 50 | @Override 51 | protected String getSiteName() { 52 | return "Wikipedia"; 53 | } 54 | 55 | @Override 56 | protected String getWikiUrl() { 57 | return "http://nso.wikipedia.org/"; 58 | } 59 | 60 | @Override 61 | public String getIso639() { 62 | return "nso"; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/NvConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class NvConfig extends TemplateConfig { 22 | public NvConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Special"); 25 | addNamespaceAlias(1, "Naaltsoos_baa_yáshtiʼ"); 26 | addNamespaceAlias(2, "Choyoołʼįįhí"); 27 | addNamespaceAlias(3, "Choyoołʼįįhí_bichʼįʼ_yáshtiʼ"); 28 | addNamespaceAlias(5, "Wikipedia_baa_yáshtiʼ"); 29 | addNamespaceAlias(6, "Eʼelyaaígíí"); 30 | addNamespaceAlias(7, "Eʼelyaaígíí_baa_yáshtiʼ"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_baa_yáshtiʼ"); 33 | addNamespaceAlias(10, "Bee_álnééhí"); 34 | addNamespaceAlias(11, "Bee_álnééhí_baa_yáshtiʼ"); 35 | addNamespaceAlias(12, "Anáʼálwoʼ"); 36 | addNamespaceAlias(13, "Anáʼálwoʼ_baa_yáshtiʼ"); 37 | addNamespaceAlias(14, "Tʼááłáhági_átʼéego"); 38 | addNamespaceAlias(15, "Tʼááłáhági_átʼéego_baa_yáshtiʼ"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://nv.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "nv"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/PaConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class PaConfig extends TemplateConfig { 22 | public PaConfig() { 23 | addNamespaceAlias(-2, "ਮੀਡੀਆ"); 24 | addNamespaceAlias(-1, "ਖ਼ਾਸ", "ਖਾਸ"); 25 | addNamespaceAlias(1, "ਗੱਲ-ਬਾਤ", "ਚਰਚਾ"); 26 | addNamespaceAlias(2, "ਵਰਤੋਂਕਾਰ", "ਮੈਂਬਰ", "ਵਰਤੌਂਕਾਰ"); 27 | addNamespaceAlias(3, "ਵਰਤੋਂਕਾਰ_ਗੱਲ-ਬਾਤ", "ਮੈਂਬਰ_ਚਰਚਾ", "ਵਰਤੌਂਕਾਰ_ਗੱਲ-ਬਾਤ"); 28 | addNamespaceAlias(5, "Wikipedia_ਗੱਲ-ਬਾਤ", "Wikipedia_ਚਰਚਾ"); 29 | addNamespaceAlias(6, "ਤਸਵੀਰ"); 30 | addNamespaceAlias(7, "ਤਸਵੀਰ_ਗੱਲ-ਬਾਤ", "ਤਸਵੀਰ_ਚਰਚਾ"); 31 | addNamespaceAlias(8, "ਮੀਡੀਆਵਿਕੀ", "ਮੀਡੀਆਵਿਕਿ"); 32 | addNamespaceAlias(9, "ਮੀਡੀਆਵਿਕੀ_ਗੱਲ-ਬਾਤ", "ਮੀਡੀਆਵਿਕਿ_ਚਰਚਾ"); 33 | addNamespaceAlias(10, "ਫਰਮਾ", "ਨਮੂਨਾ"); 34 | addNamespaceAlias(11, "ਫਰਮਾ_ਗੱਲ-ਬਾਤ", "ਨਮੂਨਾ_ਚਰਚਾ"); 35 | addNamespaceAlias(12, "ਮਦਦ"); 36 | addNamespaceAlias(13, "ਮਦਦ_ਗੱਲ-ਬਾਤ", "ਮਦਦ_ਚਰਚਾ"); 37 | addNamespaceAlias(14, "ਸ਼੍ਰੇਣੀ"); 38 | addNamespaceAlias(15, "ਸ਼੍ਰੇਣੀ_ਗੱਲ-ਬਾਤ", "ਸ਼੍ਰੇਣੀ_ਚਰਚਾ"); 39 | 40 | addI18nCIAlias("redirect", "#ਰੀਡਿਰੈਕਟ", "#REDIRECT"); 41 | addI18nCIAlias("url_wiki", "ਵਿਕੀ", "WIKI"); 42 | addI18nCIAlias("defaultsort_noerror", "ਗਲਤੀ_ਨਹੀਂ", "noerror"); 43 | addI18nCIAlias("pagesincategory_all", "ਸਬ", "all"); 44 | addI18nCIAlias("pagesincategory_pages", "ਪੰਨੇ", "pages"); 45 | addI18nCIAlias("pagesincategory_subcats", "ਉਪਸ਼੍ਰੇਣੀਆਂ", "subcats"); 46 | addI18nCIAlias("pagesincategory_files", "ਫ਼ਾਈਲਾਂ", "files"); 47 | } 48 | 49 | @Override 50 | protected String getSiteName() { 51 | return "Wikipedia"; 52 | } 53 | 54 | @Override 55 | protected String getWikiUrl() { 56 | return "http://pa.wikipedia.org/"; 57 | } 58 | 59 | @Override 60 | public String getIso639() { 61 | return "pa"; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/PiConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class PiConfig extends TemplateConfig { 22 | public PiConfig() { 23 | addNamespaceAlias(-2, "मीडिया"); 24 | addNamespaceAlias(-1, "विसेस"); 25 | addNamespaceAlias(1, "सम्भासित"); 26 | addNamespaceAlias(2, "अवयव"); 27 | addNamespaceAlias(3, "अवयव_सम्भासित"); 28 | addNamespaceAlias(5, "Wikipedia_सम्भासित"); 29 | addNamespaceAlias(6, "पटिमा"); 30 | addNamespaceAlias(7, "पटिमा_सम्भासित"); 31 | addNamespaceAlias(8, "मीडियाविकि"); 32 | addNamespaceAlias(9, "मीडियाविकि_सम्भासित"); 33 | addNamespaceAlias(10, "पटिरूप"); 34 | addNamespaceAlias(11, "पटिरूप_सम्भासित"); 35 | addNamespaceAlias(12, "अवस्सय"); 36 | addNamespaceAlias(13, "अवस्सय_सम्भासित"); 37 | addNamespaceAlias(14, "विभाग"); 38 | addNamespaceAlias(15, "विभाग_सम्भासित"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://pi.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "pi"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/PnbConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class PnbConfig extends TemplateConfig { 22 | public PnbConfig() { 23 | 24 | } 25 | 26 | @Override 27 | protected String getSiteName() { 28 | return "Wikipedia"; 29 | } 30 | 31 | @Override 32 | protected String getWikiUrl() { 33 | return "http://pnb.wikipedia.org/"; 34 | } 35 | 36 | @Override 37 | public String getIso639() { 38 | return "pnb"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/PntConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class PntConfig extends TemplateConfig { 22 | public PntConfig() { 23 | addNamespaceAlias(-2, "Μέσον"); 24 | addNamespaceAlias(-1, "Ειδικόν"); 25 | addNamespaceAlias(1, "Καλάτσεμαν"); 26 | addNamespaceAlias(2, "Χρήστες"); 27 | addNamespaceAlias(3, "Καλάτσεμαν_χρήστε"); 28 | addNamespaceAlias(5, "Wikipedia_καλάτσεμαν"); 29 | addNamespaceAlias(6, "Αρχείον", "Εικόναν"); 30 | addNamespaceAlias(7, "Καλάτσεμαν_αρχείονος", "Καλάτσεμαν_εικόνας"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_talk"); 33 | addNamespaceAlias(10, "Πρότυπον"); 34 | addNamespaceAlias(11, "Καλάτσεμαν_πρότυπι"); 35 | addNamespaceAlias(12, "Βοήθειαν"); 36 | addNamespaceAlias(13, "Καλάτσεμαν_βοήθειας"); 37 | addNamespaceAlias(14, "Κατηγορίαν"); 38 | addNamespaceAlias(15, "Καλάτσεμαν_κατηγορίας"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://pnt.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "pnt"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/RmConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class RmConfig extends TemplateConfig { 22 | public RmConfig() { 23 | addNamespaceAlias(-2, "Multimedia"); 24 | addNamespaceAlias(-1, "Spezial"); 25 | addNamespaceAlias(1, "Discussiun"); 26 | addNamespaceAlias(2, "Utilisader"); 27 | addNamespaceAlias(3, "Utilisader_discussiun"); 28 | addNamespaceAlias(5, "Wikipedia_discussiun"); 29 | addNamespaceAlias(6, "Datoteca"); 30 | addNamespaceAlias(7, "Datoteca_discussiun"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki_discussiun"); 33 | addNamespaceAlias(10, "Model"); 34 | addNamespaceAlias(11, "Model_discussiun"); 35 | addNamespaceAlias(12, "Agid"); 36 | addNamespaceAlias(13, "Agid_discussiun"); 37 | addNamespaceAlias(14, "Categoria"); 38 | addNamespaceAlias(15, "Categoria_discussiun"); 39 | 40 | addI18nCIAlias("redirect", "#RENVIAMENT", "#REDIRECT"); 41 | addI18nAlias("img_thumbnail", "miniatura", "thumbnail", "thumb"); 42 | addI18nAlias("img_manualthumb", "miniatura=$1", "thumbnail=$1", "thumb=$1"); 43 | addI18nAlias("img_upright", "sidretg", "sidretg=$1", "sidretg_$1", "upright", "upright=$1", "upright $1"); 44 | } 45 | 46 | @Override 47 | protected String getSiteName() { 48 | return "Wikipedia"; 49 | } 50 | 51 | @Override 52 | protected String getWikiUrl() { 53 | return "http://rm.wikipedia.org/"; 54 | } 55 | 56 | @Override 57 | public String getIso639() { 58 | return "rm"; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/ScConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class ScConfig extends TemplateConfig { 22 | public ScConfig() { 23 | addNamespaceAlias(-1, "Ispetziale", "Speciale"); 24 | addNamespaceAlias(1, "Cuntierra", "Contièndha"); 25 | addNamespaceAlias(2, "Usuàriu", "Utente"); 26 | addNamespaceAlias(3, "Cuntierra_usuàriu", "Utente_discussioni"); 27 | addNamespaceAlias(5, "Cuntierra_Wikipedia", "Wikipedia_discussioni"); 28 | addNamespaceAlias(6, "File", "Immàgini"); 29 | addNamespaceAlias(7, "Cuntierra_file", "Immàgini_contièndha"); 30 | addNamespaceAlias(9, "Cuntierra_MediaWiki"); 31 | addNamespaceAlias(11, "Cuntierra_template"); 32 | addNamespaceAlias(12, "Agiudu"); 33 | addNamespaceAlias(13, "Cuntierra_agiudu"); 34 | addNamespaceAlias(14, "Categoria"); 35 | addNamespaceAlias(15, "Cuntierra_categoria"); 36 | 37 | } 38 | 39 | @Override 40 | protected String getSiteName() { 41 | return "Wikipedia"; 42 | } 43 | 44 | @Override 45 | protected String getWikiUrl() { 46 | return "http://sc.wikipedia.org/"; 47 | } 48 | 49 | @Override 50 | public String getIso639() { 51 | return "sc"; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/SdcConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class SdcConfig extends TemplateConfig { 22 | public SdcConfig() { 23 | addNamespaceAlias(-1, "Ippiziari"); 24 | addNamespaceAlias(1, "Dischussioni"); 25 | addNamespaceAlias(2, "Utenti"); 26 | addNamespaceAlias(3, "Dischussioni_utenti"); 27 | addNamespaceAlias(5, "Dischussioni_Wikipedia"); 28 | addNamespaceAlias(6, "Immagina"); 29 | addNamespaceAlias(7, "Dischussioni_immagina"); 30 | addNamespaceAlias(9, "Dischussioni_MediaWiki"); 31 | addNamespaceAlias(10, "Mudellu"); 32 | addNamespaceAlias(11, "Dischussioni_mudellu"); 33 | addNamespaceAlias(12, "Aggiuddu"); 34 | addNamespaceAlias(13, "Dischussioni_aggiuddu"); 35 | addNamespaceAlias(14, "Categuria"); 36 | addNamespaceAlias(15, "Dischussioni_categuria"); 37 | 38 | } 39 | 40 | @Override 41 | protected String getSiteName() { 42 | return "Wikipedia"; 43 | } 44 | 45 | @Override 46 | protected String getWikiUrl() { 47 | return "http://sdc.wikipedia.org/"; 48 | } 49 | 50 | @Override 51 | public String getIso639() { 52 | return "sdc"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/SwConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class SwConfig extends TemplateConfig { 22 | public SwConfig() { 23 | addNamespaceAlias(-2, "Faili"); 24 | addNamespaceAlias(-1, "Maalum"); 25 | addNamespaceAlias(1, "Majadiliano"); 26 | addNamespaceAlias(2, "Mtumiaji"); 27 | addNamespaceAlias(3, "Majadiliano_ya_mtumiaji"); 28 | addNamespaceAlias(5, "Majadiliano_ya_Wikipedia", "Wikipedia_majadiliano"); 29 | addNamespaceAlias(6, "Picha"); 30 | addNamespaceAlias(7, "Majadiliano_ya_faili", "Majadiliano_faili"); 31 | addNamespaceAlias(9, "Majadiliano_ya_MediaWiki", "MediaWiki_majadiliano"); 32 | addNamespaceAlias(10, "Kigezo"); 33 | addNamespaceAlias(11, "Majadiliano_ya_kigezo", "Kigezo_majadiliano"); 34 | addNamespaceAlias(12, "Msaada"); 35 | addNamespaceAlias(13, "Majadiliano_ya_msaada", "Msaada_majadiliano"); 36 | addNamespaceAlias(14, "Jamii"); 37 | addNamespaceAlias(15, "Majadiliano_ya_jamii", "Jamii_majadiliano"); 38 | 39 | } 40 | 41 | @Override 42 | protected String getSiteName() { 43 | return "Wikipedia"; 44 | } 45 | 46 | @Override 47 | protected String getWikiUrl() { 48 | return "http://sw.wikipedia.org/"; 49 | } 50 | 51 | @Override 52 | public String getIso639() { 53 | return "sw"; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TaConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TaConfig extends TemplateConfig { 22 | public TaConfig() { 23 | addNamespaceAlias(-2, "ஊடகம்"); 24 | addNamespaceAlias(-1, "சிறப்பு"); 25 | addNamespaceAlias(1, "பேச்சு"); 26 | addNamespaceAlias(2, "பயனர்"); 27 | addNamespaceAlias(3, "பயனர்_பேச்சு"); 28 | addNamespaceAlias(5, "Wikipedia_பேச்சு", "விக்கிபீடியா_பேச்சு"); 29 | addNamespaceAlias(6, "படிமம்"); 30 | addNamespaceAlias(7, "படிமப்_பேச்சு", "உருவப்_பேச்சு"); 31 | addNamespaceAlias(8, "மீடியாவிக்கி"); 32 | addNamespaceAlias(9, "மீடியாவிக்கி_பேச்சு"); 33 | addNamespaceAlias(10, "வார்ப்புரு"); 34 | addNamespaceAlias(11, "வார்ப்புரு_பேச்சு"); 35 | addNamespaceAlias(12, "உதவி"); 36 | addNamespaceAlias(13, "உதவி_பேச்சு"); 37 | addNamespaceAlias(14, "பகுப்பு"); 38 | addNamespaceAlias(15, "பகுப்பு_பேச்சு"); 39 | addNamespaceAlias(4, "விக்கிபீடியா"); 40 | 41 | addI18nCIAlias("redirect", "#வழிமாற்று", "#REDIRECT"); 42 | addI18nAlias("img_right", "வலது", "right"); 43 | addI18nAlias("img_left", "இடது", "left"); 44 | addI18nAlias("img_none", "ஒன்றுமில்லை", "none"); 45 | addI18nAlias("img_center", "மையம்", "center", "centre"); 46 | addI18nAlias("img_top", "மேல்", "top"); 47 | addI18nAlias("img_middle", "மத்தியில்", "middle"); 48 | addI18nAlias("img_bottom", "கீழ்", "bottom"); 49 | addI18nCIAlias("plural", "பன்மை", "PLURAL:"); 50 | addI18nCIAlias("special", "சிறப்பு", "special"); 51 | addI18nAlias("pagesize", "பக்க_அளவு", "PAGESIZE"); 52 | addI18nCIAlias("url_path", "வழி", "PATH"); 53 | addI18nCIAlias("url_wiki", "விக்கி", "WIKI"); 54 | } 55 | 56 | @Override 57 | protected String getSiteName() { 58 | return "Wikipedia"; 59 | } 60 | 61 | @Override 62 | protected String getWikiUrl() { 63 | return "http://ta.wikipedia.org/"; 64 | } 65 | 66 | @Override 67 | public String getIso639() { 68 | return "ta"; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TcyConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TcyConfig extends TemplateConfig { 22 | public TcyConfig() { 23 | addNamespaceAlias(-2, "ಮೀಡಿಯ"); 24 | addNamespaceAlias(-1, "ವಿಶೇಷ"); 25 | addNamespaceAlias(1, "ಚರ್ಚೆಪುಟ"); 26 | addNamespaceAlias(2, "ಸದಸ್ಯ"); 27 | addNamespaceAlias(3, "ಸದಸ್ಯರ_ಚರ್ಚೆಪುಟ"); 28 | addNamespaceAlias(5, "Wikipedia_ಚರ್ಚೆ"); 29 | addNamespaceAlias(6, "ಚಿತ್ರ"); 30 | addNamespaceAlias(7, "ಚಿತ್ರ_ಚರ್ಚೆಪುಟ"); 31 | addNamespaceAlias(8, "ಮೀಡಿಯವಿಕಿ"); 32 | addNamespaceAlias(9, "ಮೀಡೀಯವಿಕಿ_ಚರ್ಚೆ"); 33 | addNamespaceAlias(10, "ಟೆಂಪ್ಲೇಟು"); 34 | addNamespaceAlias(11, "ಟೆಂಪ್ಲೇಟು_ಚರ್ಚೆ"); 35 | addNamespaceAlias(12, "ಸಹಾಯ"); 36 | addNamespaceAlias(13, "ಸಹಾಯ_ಚರ್ಚೆ"); 37 | addNamespaceAlias(14, "ವರ್ಗ"); 38 | addNamespaceAlias(15, "ವರ್ಗ_ಚರ್ಚೆ"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://tcy.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "tcy"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TeConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TeConfig extends TemplateConfig { 22 | public TeConfig() { 23 | addNamespaceAlias(-2, "మీడియా"); 24 | addNamespaceAlias(-1, "ప్రత్యేక"); 25 | addNamespaceAlias(1, "చర్చ"); 26 | addNamespaceAlias(2, "వాడుకరి", "సభ్యులు", "సభ్యుడు"); 27 | addNamespaceAlias(3, "వాడుకరి_చర్చ", "సభ్యులపై_చర్చ", "సభ్యునిపై_చర్చ"); 28 | addNamespaceAlias(5, "Wikipedia_చర్చ"); 29 | addNamespaceAlias(6, "దస్త్రం", "బొమ్మ", "ఫైలు"); 30 | addNamespaceAlias(7, "దస్త్రంపై_చర్చ", "బొమ్మపై_చర్చ", "ఫైలుపై_చర్చ"); 31 | addNamespaceAlias(8, "మీడియావికీ"); 32 | addNamespaceAlias(9, "మీడియావికీ_చర్చ"); 33 | addNamespaceAlias(10, "మూస"); 34 | addNamespaceAlias(11, "మూస_చర్చ"); 35 | addNamespaceAlias(12, "సహాయం", "సహాయము"); 36 | addNamespaceAlias(13, "సహాయం_చర్చ", "సహాయము_చర్చ"); 37 | addNamespaceAlias(14, "వర్గం"); 38 | addNamespaceAlias(15, "వర్గం_చర్చ"); 39 | 40 | addI18nCIAlias("redirect", "#దారిమార్పు", "#REDIRECT"); 41 | addI18nCIAlias("notoc", "__విషయసూచికవద్దు__", "__NOTOC__"); 42 | addI18nCIAlias("toc", "__విషయసూచిక__", "__TOC__"); 43 | addI18nAlias("pagename", "పేజీపేరు", "PAGENAME"); 44 | addI18nAlias("img_right", "కుడి", "right"); 45 | addI18nAlias("img_left", "ఎడమ", "left"); 46 | addI18nCIAlias("special", "ప్రత్యేక", "special"); 47 | } 48 | 49 | @Override 50 | protected String getSiteName() { 51 | return "Wikipedia"; 52 | } 53 | 54 | @Override 55 | protected String getWikiUrl() { 56 | return "http://te.wikipedia.org/"; 57 | } 58 | 59 | @Override 60 | public String getIso639() { 61 | return "te"; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TetConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TetConfig extends TemplateConfig { 22 | public TetConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Espesiál"); 25 | addNamespaceAlias(1, "Diskusaun"); 26 | addNamespaceAlias(2, "Uza-na'in"); 27 | addNamespaceAlias(3, "Diskusaun_Uza-na'in"); 28 | addNamespaceAlias(5, "Diskusaun_Wikipedia"); 29 | addNamespaceAlias(6, "Imajen"); 30 | addNamespaceAlias(7, "Diskusaun_Imajen"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Diskusaun_MediaWiki"); 33 | addNamespaceAlias(10, "Template"); 34 | addNamespaceAlias(11, "Diskusaun_Template"); 35 | addNamespaceAlias(12, "Ajuda"); 36 | addNamespaceAlias(13, "Diskusaun_Ajuda"); 37 | addNamespaceAlias(14, "Kategoria", "Kategoría"); 38 | addNamespaceAlias(15, "Diskusaun_Kategoria", "Diskusaun_Kategoría"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://tet.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "tet"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TgConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TgConfig extends TemplateConfig { 22 | public TgConfig() { 23 | addNamespaceAlias(-2, "Медиа"); 24 | addNamespaceAlias(-1, "Вижа"); 25 | addNamespaceAlias(1, "Баҳс"); 26 | addNamespaceAlias(2, "Корбар"); 27 | addNamespaceAlias(3, "Баҳси_корбар"); 28 | addNamespaceAlias(5, "Баҳси_Wikipedia"); 29 | addNamespaceAlias(6, "Акс"); 30 | addNamespaceAlias(7, "Баҳси_акс"); 31 | addNamespaceAlias(8, "Медиавики"); 32 | addNamespaceAlias(9, "Баҳси_медиавики"); 33 | addNamespaceAlias(10, "Шаблон"); 34 | addNamespaceAlias(11, "Баҳси_шаблон"); 35 | addNamespaceAlias(12, "Роҳнамо"); 36 | addNamespaceAlias(13, "Баҳси_роҳнамо"); 37 | addNamespaceAlias(14, "Гурӯҳ"); 38 | addNamespaceAlias(15, "Баҳси_гурӯҳ"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://tg.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "tg"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/ThConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class ThConfig extends TemplateConfig { 22 | public ThConfig() { 23 | addNamespaceAlias(-2, "สื่อ"); 24 | addNamespaceAlias(-1, "พิเศษ"); 25 | addNamespaceAlias(1, "พูดคุย"); 26 | addNamespaceAlias(2, "ผู้ใช้"); 27 | addNamespaceAlias(3, "คุยกับผู้ใช้"); 28 | addNamespaceAlias(5, "คุยเรื่องWikipedia"); 29 | addNamespaceAlias(6, "ไฟล์", "ภาพ"); 30 | addNamespaceAlias(7, "คุยเรื่องไฟล์", "คุยเรื่องภาพ"); 31 | addNamespaceAlias(8, "มีเดียวิกิ"); 32 | addNamespaceAlias(9, "คุยเรื่องมีเดียวิกิ"); 33 | addNamespaceAlias(10, "แม่แบบ"); 34 | addNamespaceAlias(11, "คุยเรื่องแม่แบบ"); 35 | addNamespaceAlias(12, "วิธีใช้"); 36 | addNamespaceAlias(13, "คุยเรื่องวิธีใช้"); 37 | addNamespaceAlias(14, "หมวดหมู่"); 38 | addNamespaceAlias(15, "คุยเรื่องหมวดหมู่"); 39 | 40 | addI18nCIAlias("redirect", "#เปลี่ยนทาง", "#REDIRECT"); 41 | addI18nCIAlias("notoc", "__ไม่มีสารบัญ__", "__NOTOC__"); 42 | addI18nCIAlias("nogallery", "__ไม่มีแกลเลอรี่__", "__NOGALLERY__"); 43 | addI18nCIAlias("noeditsection", "__ไม่มีแก้เฉพาะส่วน__", "__NOEDITSECTION__"); 44 | addI18nAlias("currentmonth", "เดือนปัจจุบัน", "CURRENTMONTH", "CURRENTMONTH2"); 45 | addI18nAlias("currentmonthname", "ชื่อเดือนปัจจุบัน", "CURRENTMONTHNAME"); 46 | } 47 | 48 | @Override 49 | protected String getSiteName() { 50 | return "Wikipedia"; 51 | } 52 | 53 | @Override 54 | protected String getWikiUrl() { 55 | return "http://th.wikipedia.org/"; 56 | } 57 | 58 | @Override 59 | public String getIso639() { 60 | return "th"; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TkConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TkConfig extends TemplateConfig { 22 | public TkConfig() { 23 | addNamespaceAlias(-2, "Media"); 24 | addNamespaceAlias(-1, "Ýörite"); 25 | addNamespaceAlias(1, "Çekişme"); 26 | addNamespaceAlias(2, "Ulanyjy"); 27 | addNamespaceAlias(3, "Ulanyjy_çekişme"); 28 | addNamespaceAlias(5, "Wikipedia_çekişme"); 29 | addNamespaceAlias(6, "Faýl"); 30 | addNamespaceAlias(7, "Faýl_çekişme"); 31 | addNamespaceAlias(9, "MediaWiki_çekişme"); 32 | addNamespaceAlias(10, "Şablon"); 33 | addNamespaceAlias(11, "Şablon_çekişme"); 34 | addNamespaceAlias(12, "Ýardam"); 35 | addNamespaceAlias(13, "Ýardam_çekişme"); 36 | addNamespaceAlias(14, "Kategoriýa"); 37 | addNamespaceAlias(15, "Kategoriýa_çekişme"); 38 | 39 | } 40 | 41 | @Override 42 | protected String getSiteName() { 43 | return "Wikipedia"; 44 | } 45 | 46 | @Override 47 | protected String getWikiUrl() { 48 | return "http://tk.wikipedia.org/"; 49 | } 50 | 51 | @Override 52 | public String getIso639() { 53 | return "tk"; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TlConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TlConfig extends TemplateConfig { 22 | public TlConfig() { 23 | addNamespaceAlias(-2, "Midya"); 24 | addNamespaceAlias(-1, "Natatangi"); 25 | addNamespaceAlias(1, "Usapan"); 26 | addNamespaceAlias(2, "Tagagamit"); 27 | addNamespaceAlias(3, "Usapang_tagagamit"); 28 | addNamespaceAlias(5, "Usapang_Wikipedia"); 29 | addNamespaceAlias(6, "Talaksan"); 30 | addNamespaceAlias(7, "Usapang_talaksan"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Usapang_MediaWiki"); 33 | addNamespaceAlias(10, "Padron", "Suleras"); 34 | addNamespaceAlias(11, "Usapang_padron", "Usapang_suleras"); 35 | addNamespaceAlias(12, "Tulong"); 36 | addNamespaceAlias(13, "Usapang_tulong"); 37 | addNamespaceAlias(14, "Kategorya", "Kaurian"); 38 | addNamespaceAlias(15, "Usapang_kategorya", "Usapang_kaurian"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://tl.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "tl"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/TpiConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class TpiConfig extends TemplateConfig { 22 | public TpiConfig() { 23 | addNamespaceAlias(-1, "Sipesol"); 24 | addNamespaceAlias(1, "Toktok"); 25 | addNamespaceAlias(2, "Yusa"); 26 | addNamespaceAlias(3, "Toktok_bilong_yusa"); 27 | addNamespaceAlias(5, "Wikipedia_toktok"); 28 | addNamespaceAlias(6, "Fail"); 29 | addNamespaceAlias(7, "Toktok_bilong_fail"); 30 | addNamespaceAlias(8, "MediaWiki"); 31 | addNamespaceAlias(9, "Toktok_bilong_mediawiki"); 32 | addNamespaceAlias(10, "Templet"); 33 | addNamespaceAlias(11, "Toktok_bilong_templet"); 34 | addNamespaceAlias(12, "Halivim"); 35 | addNamespaceAlias(13, "Toktok_bilong_halivim"); 36 | addNamespaceAlias(14, "Grup"); 37 | addNamespaceAlias(15, "Toktok_bilong_grup"); 38 | 39 | } 40 | 41 | @Override 42 | protected String getSiteName() { 43 | return "Wikipedia"; 44 | } 45 | 46 | @Override 47 | protected String getWikiUrl() { 48 | return "http://tpi.wikipedia.org/"; 49 | } 50 | 51 | @Override 52 | public String getIso639() { 53 | return "tpi"; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/UgConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class UgConfig extends TemplateConfig { 22 | public UgConfig() { 23 | addNamespaceAlias(-2, "ۋاسىتە"); 24 | addNamespaceAlias(-1, "ئالاھىدە"); 25 | addNamespaceAlias(1, "مۇنازىرە"); 26 | addNamespaceAlias(2, "ئىشلەتكۈچى"); 27 | addNamespaceAlias(3, "ئىشلەتكۈچى_مۇنازىرىسى"); 28 | addNamespaceAlias(5, "Wikipediaمۇنازىرىسى", "مۇنازىرىسىWikipedia"); 29 | addNamespaceAlias(6, "ھۆججەت"); 30 | addNamespaceAlias(7, "ھۆججەت_مۇنازىرىسى"); 31 | addNamespaceAlias(9, "MediaWiki_مۇنازىرىسى"); 32 | addNamespaceAlias(10, "قېلىپ"); 33 | addNamespaceAlias(11, "قېلىپ_مۇنازىرىسى"); 34 | addNamespaceAlias(12, "ياردەم"); 35 | addNamespaceAlias(13, "ياردەم_مۇنازىرىسى"); 36 | addNamespaceAlias(14, "تۈر"); 37 | addNamespaceAlias(15, "تۈر_مۇنازىرىسى"); 38 | 39 | } 40 | 41 | @Override 42 | protected String getSiteName() { 43 | return "Wikipedia"; 44 | } 45 | 46 | @Override 47 | protected String getWikiUrl() { 48 | return "http://ug.wikipedia.org/"; 49 | } 50 | 51 | @Override 52 | public String getIso639() { 53 | return "ug"; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/VoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class VoConfig extends TemplateConfig { 22 | public VoConfig() { 23 | addNamespaceAlias(-2, "Nünamakanäd"); 24 | addNamespaceAlias(-1, "Patikos"); 25 | addNamespaceAlias(1, "Bespik"); 26 | addNamespaceAlias(2, "Geban"); 27 | addNamespaceAlias(3, "Gebanibespik"); 28 | addNamespaceAlias(5, "Bespik_dö_Wikipedia"); 29 | addNamespaceAlias(6, "Ragiv", "Magod"); 30 | addNamespaceAlias(7, "Ragivibespik", "Magodibespik"); 31 | addNamespaceAlias(8, "Sitanuns"); 32 | addNamespaceAlias(9, "Bespik_dö_sitanuns"); 33 | addNamespaceAlias(10, "Samafomot"); 34 | addNamespaceAlias(11, "Samafomotibespik"); 35 | addNamespaceAlias(12, "Yuf"); 36 | addNamespaceAlias(13, "Yufibespik"); 37 | addNamespaceAlias(14, "Klad"); 38 | addNamespaceAlias(15, "Kladibespik"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://vo.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "vo"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/WarConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class WarConfig extends TemplateConfig { 22 | public WarConfig() { 23 | addNamespaceAlias(-2, "Medya"); 24 | addNamespaceAlias(-1, "Pinaurog"); 25 | addNamespaceAlias(1, "Hiruhimangraw"); 26 | addNamespaceAlias(2, "Gumaramit"); 27 | addNamespaceAlias(3, "Hiruhimangaw_hiton_gumaramit"); 28 | addNamespaceAlias(5, "Hiruhimangraw_hiton_Wikipedia"); 29 | addNamespaceAlias(6, "Paypay", "Fayl"); 30 | addNamespaceAlias(7, "Hiruhimangraw_hiton_paypay", "Hiruhimangraw_hiton_fayl"); 31 | addNamespaceAlias(8, "MedyaWiki"); 32 | addNamespaceAlias(9, "Hiruhimangraw_hiton_MedyaWiki", "Hiruhimangraw_hiton_MediaWiki"); 33 | addNamespaceAlias(10, "Batakan"); 34 | addNamespaceAlias(11, "Hiruhimangraw_hiton_batakan"); 35 | addNamespaceAlias(12, "Bulig"); 36 | addNamespaceAlias(13, "Hiruhimangaw_hiton_bulig"); 37 | addNamespaceAlias(14, "Kaarangay"); 38 | addNamespaceAlias(15, "Hiruhimangraw_hiton_kaarangay"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://war.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "war"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/YoConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class YoConfig extends TemplateConfig { 22 | public YoConfig() { 23 | addNamespaceAlias(-2, "Amóhùnmáwòrán"); 24 | addNamespaceAlias(-1, "Pàtàkì"); 25 | addNamespaceAlias(1, "Ọ̀rọ̀"); 26 | addNamespaceAlias(2, "Oníṣe"); 27 | addNamespaceAlias(3, "Ọ̀rọ̀_oníṣe"); 28 | addNamespaceAlias(5, "Ọ̀rọ̀_Wikipedia"); 29 | addNamespaceAlias(6, "Fáìlì", "Àwòrán"); 30 | addNamespaceAlias(7, "Ọ̀rọ̀_fáìlì", "Ọ̀rọ̀_àwòrán"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "Ọ̀rọ̀_mediaWiki"); 33 | addNamespaceAlias(10, "Àdàkọ"); 34 | addNamespaceAlias(11, "Ọ̀rọ̀_àdàkọ"); 35 | addNamespaceAlias(12, "Ìrànlọ́wọ́"); 36 | addNamespaceAlias(13, "Ọ̀rọ̀_ìrànlọ́wọ́"); 37 | addNamespaceAlias(14, "Ẹ̀ka"); 38 | addNamespaceAlias(15, "Ọ̀rọ̀_ẹ̀ka"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://yo.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "yo"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/lang/YueConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Wikiforia. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.lang; 18 | 19 | //Autogenerated from Wikimedia sources at 2015-04-16T13:55:11+00:00 20 | 21 | public class YueConfig extends TemplateConfig { 22 | public YueConfig() { 23 | addNamespaceAlias(-2, "媒體", "媒体"); 24 | addNamespaceAlias(-1, "特別", "特殊"); 25 | addNamespaceAlias(1, "傾偈", "對話", "对话", "討論", "讨论"); 26 | addNamespaceAlias(2, "用戶", "用户"); 27 | addNamespaceAlias(3, "用戶傾偈", "用戶 對話", "用户 对话", "用戶 討論", "用户 讨论"); 28 | addNamespaceAlias(5, "Wikipedia傾偈", "Wikipedia_傾偈"); 29 | addNamespaceAlias(6, "文件", "檔", "檔案", "档", "档案", "圖", "圖像", "图", "图像", "Image"); 30 | addNamespaceAlias(7, "文件傾偈", "Image_talk", "檔 討論", "档 讨论", "檔案 討論", "档案 讨论", "圖 討論", "图 讨论", "圖像 討論", "图像 讨论", "MediaWiki_傾偈"); 31 | addNamespaceAlias(8, "MediaWiki"); 32 | addNamespaceAlias(9, "MediaWiki傾偈"); 33 | addNamespaceAlias(10, "模"); 34 | addNamespaceAlias(11, "模傾偈", "模 討論", "模 讨论"); 35 | addNamespaceAlias(12, "幫手", "幫助", "說明", "帮手", "帮助", "说明"); 36 | addNamespaceAlias(13, "幫手傾偈", "幫手 討論", "幫助 討論", "說明 討論", "帮手 讨论", "帮助 讨论", "说明 讨论"); 37 | addNamespaceAlias(14, "分類", "類", "类", "分类"); 38 | addNamespaceAlias(15, "分類傾偈", "類 討論", "分類 討論", "类 讨论", "分类 讨论"); 39 | 40 | } 41 | 42 | @Override 43 | protected String getSiteName() { 44 | return "Wikipedia"; 45 | } 46 | 47 | @Override 48 | protected String getWikiUrl() { 49 | return "http://yue.wikipedia.org/"; 50 | } 51 | 52 | @Override 53 | public String getIso639() { 54 | return "yue"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/SwebleParserUtil.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser; 2 | 3 | import org.sweble.wikitext.engine.EngineException; 4 | import org.sweble.wikitext.engine.PageId; 5 | import org.sweble.wikitext.engine.PageTitle; 6 | import org.sweble.wikitext.engine.WtEngineImpl; 7 | import org.sweble.wikitext.engine.config.WikiConfig; 8 | import org.sweble.wikitext.engine.nodes.EngProcessedPage; 9 | import org.sweble.wikitext.parser.parser.LinkTargetException; 10 | 11 | /** 12 | * Created by csz-mkg on 15-01-20. 13 | */ 14 | public class SwebleParserUtil { 15 | public static EngProcessedPage parseWikipage(WtEngineImpl engine, PageId pageId, String markup) throws EngineException { 16 | return engine.postprocess(pageId, markup, null); 17 | } 18 | 19 | public static EngProcessedPage parsePage(WikiConfig config, String title, long revision, String markup) throws EngineException, LinkTargetException { 20 | WtEngineImpl engine = new WtEngineImpl(config); 21 | 22 | PageTitle pageTitle = PageTitle.make(config, title); 23 | PageId pageId = new PageId(pageTitle, revision); 24 | 25 | return parseWikipage(engine, pageId, markup); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/SwebleWikimarkupToText.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Wikiforia. 3 | * 4 | * Wikiforia is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Wikiforia is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package se.lth.cs.nlp.wikipedia.parser; 18 | 19 | import org.sweble.wikitext.engine.nodes.EngProcessedPage; 20 | import se.lth.cs.nlp.mediawiki.model.Page; 21 | import se.lth.cs.nlp.mediawiki.model.WikipediaPage; 22 | import se.lth.cs.nlp.wikipedia.lang.TemplateConfig; 23 | 24 | import java.util.regex.Pattern; 25 | 26 | /** 27 | * Sweble Wikimarkup to text 28 | */ 29 | public class SwebleWikimarkupToText extends SwebleWikimarkupParserBase { 30 | 31 | public SwebleWikimarkupToText(TemplateConfig config) { 32 | super(config); 33 | } 34 | 35 | private final Pattern trimLineStartFix = Pattern.compile("^[\\t ]+", Pattern.MULTILINE); 36 | private final Pattern trimLineEndFix = Pattern.compile("[\\t ]+$", Pattern.MULTILINE); 37 | 38 | @Override 39 | protected WikipediaPage extract(Page page, EngProcessedPage cp) { 40 | SwebleTextAstWalker walker = new SwebleTextAstWalker(config); 41 | String text = (String)walker.go(cp.getPage()); 42 | text = text.replaceAll("\\(\\s*\\)", " "); 43 | text = text.replaceAll(" {2,}", " "); 44 | text = text.replaceAll("\n{2,}", "\n\n"); 45 | text = trimLineStartFix.matcher(text).replaceAll(""); 46 | text = trimLineEndFix.matcher(text).replaceAll(""); 47 | text = text.trim(); 48 | 49 | return new WikipediaPage(page, text); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/AbstractAnnotationParser.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | import java.util.Collection; 4 | 5 | /** 6 | * Abstract annotation parser base 7 | * @remarks the default implementation will assume that T == Out, but this might be so 8 | * and in that case: override endDocument and return proper Out value. 9 | */ 10 | public class AbstractAnnotationParser implements AnnotationParser { 11 | @Override 12 | public void startDocument(AnnotationContext context) { 13 | 14 | } 15 | 16 | @Override 17 | public void category(AnnotationContext context, String target, String title, int start) { 18 | 19 | } 20 | 21 | @Override 22 | public void template(AnnotationContext context, Template template, int start) { 23 | 24 | } 25 | 26 | @Override 27 | public void table(AnnotationContext context, Table table, int start) { 28 | 29 | } 30 | 31 | @Override 32 | public void tableCellStart(AnnotationContext context, int row, int col, int start) { 33 | 34 | } 35 | 36 | @Override 37 | public void tableCellEnd(AnnotationContext context, int row, int col, int start, int end) { 38 | 39 | } 40 | 41 | @Override 42 | public void startTemplateArgument(AnnotationContext context, int start) { 43 | 44 | } 45 | 46 | @Override 47 | public void endTemplateArgument(AnnotationContext context, int start, int end) { 48 | 49 | } 50 | 51 | @Override 52 | public void anchor(AnnotationContext context, String target, String fragmentIdentifier, boolean internal, int start, int end) { 53 | 54 | } 55 | 56 | @Override 57 | public void header(AnnotationContext context, int level, String title, Collection headerPath, int start) { 58 | 59 | } 60 | 61 | @Override 62 | public void textAbstract(AnnotationContext context, int start, int end) { 63 | 64 | } 65 | 66 | @Override 67 | public void paragraph(AnnotationContext context, String currentHeader, int start, int end) { 68 | 69 | } 70 | 71 | @Override 72 | public void startList(AnnotationContext context, int id, int start, boolean ordered) { 73 | 74 | } 75 | 76 | @Override 77 | public void startListItem(AnnotationContext context, int listId, int itemId, int start) { 78 | 79 | } 80 | 81 | @Override 82 | public void endListItem(AnnotationContext context, int listId, int itemId, int start, int end) { 83 | 84 | } 85 | 86 | @Override 87 | public void endList(AnnotationContext context, int id, int start, int end, boolean ordered) { 88 | 89 | } 90 | 91 | @Override 92 | public Out endDocument(AnnotationContext context) { 93 | return (Out)context.getModel(); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/AnnotationContext.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | /** 4 | * Annotation context, one instance per parser invocation 5 | */ 6 | public abstract class AnnotationContext { 7 | 8 | protected Object tag; 9 | protected T model; 10 | 11 | /** 12 | * Get the current state of the text 13 | */ 14 | public abstract String getText(); 15 | 16 | /** 17 | * Set the model 18 | * @param model 19 | */ 20 | public void setModel(T model) { 21 | this.model = model; 22 | } 23 | 24 | /** 25 | * Get the model 26 | * @return 27 | */ 28 | public T getModel() { 29 | return model; 30 | } 31 | 32 | /** 33 | * Set a tag for this context, completely userdefined 34 | * @param tag 35 | */ 36 | public void setTag(Object tag) { 37 | this.tag = tag; 38 | } 39 | 40 | /** 41 | * Get the tag set 42 | * @return tag or null if none has been set. 43 | */ 44 | public Object getTag() { 45 | return tag; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/SwebleAnnotationParser.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | import org.sweble.wikitext.engine.nodes.EngProcessedPage; 4 | import se.lth.cs.nlp.mediawiki.model.Page; 5 | import se.lth.cs.nlp.wikipedia.lang.TemplateConfig; 6 | import se.lth.cs.nlp.wikipedia.parser.SwebleParserUtil; 7 | import se.lth.cs.nlp.wikipedia.parser.SwebleWikimarkupParserBase; 8 | 9 | /** 10 | * Sweble wikimarkup extended parser to extract text and structured data from the page. 11 | */ 12 | public class SwebleAnnotationParser extends SwebleWikimarkupParserBase { 13 | 14 | private AnnotationParser useableParser; 15 | 16 | /** 17 | * Default constructor 18 | * @param config the wikipedia configuration 19 | */ 20 | public SwebleAnnotationParser(TemplateConfig config) { 21 | super(config); 22 | this.useableParser = null; 23 | } 24 | 25 | /** 26 | * Parser constructor, supply one parse to be used throughout the execution of the program 27 | * @param config the wikipedia configuration 28 | */ 29 | public SwebleAnnotationParser(TemplateConfig config, AnnotationParser parser) { 30 | super(config); 31 | this.useableParser = parser; 32 | } 33 | 34 | @Override 35 | public Out parse(Page page) { 36 | try{ 37 | EngProcessedPage eng = SwebleParserUtil.parsePage(config, page.getTitle(), page.getRevision(), page.getContent()); 38 | 39 | TextParser parser = new TextParser(this, page); 40 | parser.parser.startDocument(parser.context); 41 | parser.go(eng.getPage()); 42 | return parser.parser.endDocument(parser.context); 43 | } 44 | catch(Exception ex) { 45 | throw new RuntimeException(ex); 46 | } 47 | } 48 | 49 | /** 50 | * Construct a new parser 51 | * @param page the current page 52 | * @remarks override this method to create a new parser instance if needed per parse pass. 53 | */ 54 | protected AnnotationParser newParser(AnnotationContext context, Page page) { 55 | return useableParser; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/Table.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Table instance 7 | */ 8 | public abstract class Table { 9 | 10 | /** 11 | * Conduct parsing of the table to find all its cells 12 | * @return list of rows of cells. 13 | */ 14 | public abstract List> parse(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/TableCell.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | /** 4 | * Table cell 5 | */ 6 | public abstract class TableCell { 7 | 8 | protected final int row; 9 | protected final int col; 10 | 11 | public TableCell(int row, int col) { 12 | this.row = row; 13 | this.col = col; 14 | } 15 | 16 | /** 17 | * Parse this cell using a different model and parser 18 | * @param model the model 19 | * @param parser the parser 20 | * @param the model type 21 | * @param the output type, not relevant for this method because endDocument is never used. 22 | */ 23 | public abstract void parse(T model, AnnotationParser parser); 24 | 25 | /** 26 | * Parse this cell using the current model and parser 27 | * @remarks This might be undesireable because it often generates a lot of 28 | * small paragraphs depending on how the orginal documenet was written. 29 | */ 30 | public abstract void parse(); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/TableParser.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | import de.fau.cs.osr.ptk.common.AstVisitor; 4 | import org.sweble.wikitext.parser.nodes.*; 5 | 6 | import java.util.ArrayList; 7 | import java.util.List; 8 | 9 | /** 10 | * Table parser AST visitor, basically searches up all rows and cells present in a table. 11 | */ 12 | public class TableParser extends AstVisitor { 13 | protected List> cells = new ArrayList>(); 14 | protected List row; 15 | 16 | public void visit(WtNode n) 17 | { 18 | } 19 | 20 | public void visit(WtTableImplicitTableBody body) { 21 | iterate(body.getBody()); 22 | } 23 | 24 | public void visit(WtTableHeader header) { 25 | //TODO: Future support 26 | } 27 | 28 | public void visit(WtTableCaption caption) { 29 | //TODO: Future support 30 | } 31 | 32 | public void visit(WtBody body) { 33 | iterate(body); 34 | } 35 | 36 | public void visit(WtTable table) { 37 | iterate(table.getBody()); 38 | } 39 | 40 | public void visit(WtTableRow row) { 41 | this.row = new ArrayList(); 42 | iterate(row); 43 | cells.add(this.row); 44 | this.row = null; 45 | } 46 | 47 | public void visit(WtTableCell cell) { 48 | if(row != null) 49 | row.add(cell); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/Template.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Template 7 | */ 8 | public abstract class Template { 9 | public String path; 10 | 11 | public Template(String path) { 12 | this.path = path; 13 | } 14 | 15 | /** 16 | * Parse the template and find all arguments 17 | * @return list of arguments. 18 | */ 19 | public abstract List parse(); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/se/lth/cs/nlp/wikipedia/parser/annotation/TemplateArgument.java: -------------------------------------------------------------------------------- 1 | package se.lth.cs.nlp.wikipedia.parser.annotation; 2 | 3 | import org.sweble.wikitext.engine.EngineException; 4 | import org.sweble.wikitext.parser.parser.LinkTargetException; 5 | 6 | /** 7 | * Template argument 8 | */ 9 | public abstract class TemplateArgument { 10 | private String path; 11 | private String argument; 12 | private String content; 13 | 14 | public TemplateArgument(String path, String argument, String content) { 15 | this.path = path; 16 | this.argument = argument; 17 | } 18 | 19 | /** 20 | * Parse custom 21 | * @param model the model for the context 22 | * @param parser the parser to use 23 | * @param model type 24 | * @throws EngineException 25 | * @throws LinkTargetException 26 | * @remarks It throws exceptions because the arguments needs to be recursively parsed which 27 | * means that the engine is invoked again, and this can fail. Total failure is undesirable; 28 | * this design allows the user to handle the error. 29 | */ 30 | public abstract void parse(T model, AnnotationParser parser) throws EngineException, LinkTargetException; 31 | 32 | /** 33 | * Parse as text, append result to current parser. 34 | * @throws EngineException 35 | * @throws LinkTargetException 36 | * @remarks It throws exceptions because the arguments needs to be recursively parsed which 37 | * means that the engine is invoked again, and this can fail. Total failure is undesirable; 38 | * this design allows the user to handle the error. 39 | */ 40 | public abstract void parse() throws EngineException, LinkTargetException; 41 | 42 | /** 43 | * Get raw content 44 | * @return text 45 | */ 46 | public String getContent() { 47 | return content; 48 | } 49 | 50 | /** 51 | * Get the path 52 | * @return 53 | */ 54 | public String getPath() { 55 | return path; 56 | } 57 | 58 | /** 59 | * Get the argument 60 | * @return 61 | */ 62 | public String getArgument() { 63 | return argument; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/main/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | --------------------------------------------------------------------------------