public final class DefaultContextSettings {
private DefaultContextSettings() {
}
public static ContextSettings create() {
ContextSettings defaultSettings = new ContextSettings(OutputFormat.Redberry, "d");
defaultSettings.setMetricName("g");
defaultSettings.addMetricIndexType(IndexType.LatinLower);
defaultSettings.addMetricIndexType(IndexType.GreekLower);
defaultSettings.addMetricIndexType(IndexType.LatinUpper);
defaultSettings.addMetricIndexType(IndexType.GreekUpper);
//Reading seed from property if exists
if (System.getProperty("redberry.nmseed") != null)
defaultSettings.setNameManagerSeed(Long.parseLong(System.getProperty("redberry.nmseed"), 10));
return defaultSettings;
}