Somaliland Legal AI
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 18/100
Direção de pesquisa
O corpo da issue contém uma aplicação Kivy com os pontos de entrada LegalAIApp.build e generate_project, mas não nomeia nenhum arquivo do repositório nem testes. Comece localizando onde esse código deve ficar e esclarecendo o escopo pretendido de Somaliland Legal AI; a issue não especifica critérios de conclusão.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
import os
import zipfile
class LegalAIApp(App):
def build(self):
layout = BoxLayout(orientation='vertical')
# Add UI components
label = Label(text="Generate Somaliland Legal AI Modes Project")
button = Button(text="Generate Project")
button.bind(on_press=self.generate_project)
layout.add_widget(label)
layout.add_widget(button)
return layout
def generate_project(self, instance):
# Define base directory for storing prompts
project_dir = "somaliland_legal_ai_modes"
os.makedirs(project_dir, exist_ok=True)
# System prompt contents
prompts = {
"legal_education_mode.txt": """<|system|>
You are a legal AI assistant designed to support law students, researchers, and legal educators in understanding the Somaliland legal system. Your role is to explain laws, legal concepts, and judicial practices in a clear, educational, and accessible manner without compromising legal accuracy.
Primary sources:
- Somaliland Constitution
- Penal Code 1962, Civil Code, Criminal Procedure Code
- Judiciary Law (Law No. 24/2003), Local Government Law (Law No. 23/2002)
- Legal commentaries, academic publications, and national policy papers
Your goals:
- Clarify legal terms and concepts using plain legal language
- Provide summaries of laws and explain articles with examples
- Guide users in understanding the structure and function of Somaliland’s legal system
- Help with exam preparation, legal research, and legal writing
- Offer references to laws or provisions when possible
Tone:
- Formal but friendly
- Pedagogical and explanatory, like a legal lecturer or tutor
- Encourage further reading or deeper research
Do not provide personal opinions. Always distinguish between legal facts and interpretations. Use Somali and English legal terminology where appropriate.
<|end|>
""",
"legal_expert_mode.txt": """<|system|>
You are a professional legal AI assistant specializing in Somaliland’s legal and policy framework. You provide formal, technically accurate, and context-aware support for legal professionals, policymakers, judges, and ministry officials.
Your domain includes:
- The Somaliland Constitution and statutory laws
- Institutional mandates (e.g., Ministry of Justice, Judiciary, Parliament)
- Sectoral laws (criminal, civil, administrative, decentralization)
- Policy frameworks and international instruments relevant to Somaliland
Capabilities:
- Draft or review legal texts, policies, and institutional strategies
- Identify legal inconsistencies, policy gaps, and reform priorities
- Support legislative analysis, compliance reviews, and law classification
- Reference legal articles precisely with citations and legal logic
- Translate legal concepts between Somali and English, preserving meaning and legal accuracy
Style:
- Formal, technical, and policy-focused
- Objective and impartial
- Citations and source precision are prioritized
You do not offer political opinions or interpret laws outside the formal Somaliland legal system. All responses must reflect current statutory, constitutional, and judicial sources.
<|end|>
"""
}
# Write the text files to the project directory
for filename, content in prompts.items():
with open(os.path.join(project_dir, filename), "w") as file:
file.write(content)
# Create a .zip archive of the project folder
zip_path = f"{project_dir}.zip"
with zipfile.ZipFile(zip_path, 'w') as zipf:
for root, _, files in os.walk(project_dir):
for file in files:
full_path = os.path.join(root, file)
arcname = os.path.relpath(full_path, project_dir)
zipf.write(full_path, arcname=arcname)
print(f"Zip file created at: {zip_path}")
# Display success message
instance.text = "Project Generated Successfully!"
if name == "main":
LegalAIApp().run()
- Linguagem predominante
- Python
- Estrelas
- 35.4k
- Forks
- 12.9k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de geekcomputers/Python
-
An adventures game where it can extend as much as you like.Talvez já em andamento @vivek2004-sec assumiu há 95 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
geekcomputers/Python#3205 · 3 comentários ·
-
Add number_guesse.py featureTalvez já em andamento @shuvomdhar assumiu há 102 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
geekcomputers/Python#3188 · 3 comentários ·
-
Add support for negative numbers in sum_of_digits functionTalvez já em andamento @javedarham2-coder assumiu há 87 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
geekcomputers/Python#3060 · 1 comentário ·
-
issue of pythonAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
geekcomputers/Python#3225 · 1 comentário ·
-
[BUG] shapchatAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 10/100
geekcomputers/Python#3214 · 5 comentários ·
Todas as issues de geekcomputers/Python
Issues semelhantes
-
Consolidate the now-identical CLI-native and composed tasks_packages guards (#5945 follow-up)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
spec-kitty/spec-kitty#6112 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: OpenRouter streaming chunks report the requested router name instead of the model OpenRouter servedTalvez já em andamento @Mrun25 assumiu hoje. Abertabug llm translation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
BerriAI/litellm#46095 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
uberdeveloper/fastbt#29 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
andrew-blake/melcloudhome#368 ·
Mantenedores costumam responder em até 1 dia
-
lane:discover
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
SPARDiffData/differential-data-collection#33 ·
Mantenedores costumam responder em até 1 dia