Skip to content

Commit 9ff8bb9

Browse files
committed
Improve case tracker CSV formatting: word wrap and clean text fields
1 parent b13f5f8 commit 9ff8bb9

File tree

2 files changed

+39
-17
lines changed

2 files changed

+39
-17
lines changed

data/xForCloBot_Case_Tracker.csv

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11
title,jurisdiction,year,key_issues,outcome,linked_file,tags,status
2-
"BAC Home Loans Servicing, L.P. v. Wedereit",Trial Court,2014,"- Foreclosure conducted without giving borrower a chance to cure default
3-
- Deed requirements for notification and cure opportunity ignored
4-
- Premature attempt to secure summary judgment",The trial court denied the lender's motion for summary judgment. The foreclosure was challenged as invalid due to failure to comply with contractual obligations allowing borrower to cure the default.,court_cases/Bac_v_Wedereit.md,right_to_cure,Published
2+
"BAC Home Loans Servicing, L.P. v. Wedereit",Trial Court,2014,"- Foreclosure conducted without giving borrower a chance to cure default -
3+
Deed requirements for notification and cure opportunity ignored - Premature
4+
attempt to secure summary judgment","The trial court denied the lender's motion for summary judgment. The foreclosure
5+
was challenged as invalid due to failure to comply with contractual obligations
6+
allowing borrower to cure the default.",court_cases/Bac_v_Wedereit.md,right_to_cure,Published
57
"Babalola v. HSBC Bank, USA, N.A.",District Court,2013,,,court_cases/Babalola_v_Hsbc_2013.md,,Published
68
"Racette v. Bank of America, N.A.",Appeals Court,2012,,,court_cases/Racette_v_Bank_Of_America.md,,Published
7-
Hall v. Robinson,Trial Court,1983,"- Alleged bad faith foreclosure
8-
- Damages for wrongful foreclosure
9-
- Award of attorney fees","A jury found in favor of the debtor, determining that the foreclosure was initiated in bad faith. The court affirmed the verdict and upheld the awarded damages, including attorney fees.",court_cases/Hall_v_Robinson.md,bad_faith,Published
9+
Hall v. Robinson,Trial Court,1983,"- Alleged bad faith foreclosure - Damages for wrongful foreclosure - Award
10+
of attorney fees","A jury found in favor of the debtor, determining that the foreclosure was
11+
initiated in bad faith. The court affirmed the verdict and upheld the awarded
12+
damages, including attorney fees.",court_cases/Hall_v_Robinson.md,bad_faith,Published
1013
Dixon v. Branch Banking & Trust Co.,Appellate Court,2019,,,court_cases/Dixon_v_BBT.md,,Published
11-
"Webb v. Bank of Am., N.A.",Appeals Court,2014,"- Dismissal of wrongful foreclosure claim at trial
12-
- Breach of loan modification agreement
13-
- Failure to allow borrowers to present evidence","The appellate court ruled that the trial court erred in dismissing the complaint. It found that the borrowers should be allowed to present evidence of wrongful foreclosure, particularly regarding breach of the loan modification.",court_cases/Webb_v_Bank_Of_America.md,loan_modification,Published
14-
"Zhong v. PNC Bank, N.A.",Trial Court,2015,"- Trial court limited damages to lost equity
15-
- Exclusion of mental anguish and credit injury from damages consideration",The court found that damages in a wrongful foreclosure case could include mental anguish and harm to credit standing — not just financial loss or lost equity. This broadened the scope of what plaintiffs could seek in damages.,court_cases/Zhong_v_PNC.md,damages_scope,Published
16-
Garner v. US Bank Nat'l Ass'n,Trial Court,2014,"- Improper summary judgment procedure
17-
- Judicial notice of federal judgment not in court record
18-
- No opportunity for plaintiff to respond",The trial court erred by converting a motion to dismiss into a motion for summary judgment without proper notice to the plaintiff. The decision was reversed due to procedural violations.,court_cases/Garner_v_US_Bank.md,summary_judgment,Published
14+
"Webb v. Bank of Am., N.A.",Appeals Court,2014,"- Dismissal of wrongful foreclosure claim at trial - Breach of loan
15+
modification agreement - Failure to allow borrowers to present evidence","The appellate court ruled that the trial court erred in dismissing the
16+
complaint. It found that the borrowers should be allowed to present evidence of
17+
wrongful foreclosure, particularly regarding breach of the loan modification.",court_cases/Webb_v_Bank_Of_America.md,loan_modification,Published
18+
"Zhong v. PNC Bank, N.A.",Trial Court,2015,"- Trial court limited damages to lost equity - Exclusion of mental anguish and
19+
credit injury from damages consideration","The court found that damages in a wrongful foreclosure case could include mental
20+
anguish and harm to credit standing — not just financial loss or lost equity.
21+
This broadened the scope of what plaintiffs could seek in damages.",court_cases/Zhong_v_PNC.md,damages_scope,Published
22+
Garner v. US Bank Nat'l Ass'n,Trial Court,2014,"- Improper summary judgment procedure - Judicial notice of federal judgment
23+
not in court record - No opportunity for plaintiff to respond","The trial court erred by converting a motion to dismiss into a motion for
24+
summary judgment without proper notice to the plaintiff. The decision was
25+
reversed due to procedural violations.",court_cases/Garner_v_US_Bank.md,summary_judgment,Published
1926
"You v. JP Morgan Chase Bank, N.A.",Supreme Court of Georgia,2013,,,court_cases/You_v_JP_Morgan.md,non_viable,Published
20-
"Reese v. Provident Funding Assocs., LLP",Appeals Court,2012,"- Inaccurate foreclosure notice
21-
- Failure to identify the secured creditor as required by O.C.G.A. § 44-14-162(a)","The appellate court reversed the summary judgment that was previously granted in favor of the mortgagee. It determined that the foreclosure notice failed to properly identify the new secured creditor, violating statutory requirements.",court_cases/Reese_v_Provident.md,foreclosure_notice,Published
27+
"Reese v. Provident Funding Assocs., LLP",Appeals Court,2012,"- Inaccurate foreclosure notice - Failure to identify the secured creditor as
28+
required by O.C.G.A. § 44-14-162(a)","The appellate court reversed the summary judgment that was previously granted in
29+
favor of the mortgagee. It determined that the foreclosure notice failed to
30+
properly identify the new secured creditor, violating statutory requirements.",court_cases/Reese_v_Provident.md,foreclosure_notice,Published

scripts/update_case_tracker.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from typing import List, Optional
1515
from dataclasses import dataclass
1616
import pandas as pd
17+
import textwrap
1718

1819
# Configure logging
1920
logging.basicConfig(
@@ -121,7 +122,19 @@ def process_cases(self) -> None:
121122

122123
def save_to_csv(self) -> None:
123124
try:
124-
df = pd.DataFrame([vars(entry) for entry in self.entries])
125+
wrapped_entries = []
126+
for entry in self.entries:
127+
entry_dict = vars(entry).copy()
128+
# Word wrap key_issues and outcome to 80 chars per line
129+
for field in ['key_issues', 'outcome']:
130+
if entry_dict[field]:
131+
entry_dict[field] = textwrap.fill(entry_dict[field], width=80)
132+
# Strip and standardize all string fields
133+
for k, v in entry_dict.items():
134+
if isinstance(v, str):
135+
entry_dict[k] = v.strip().replace('\r\n', '\n')
136+
wrapped_entries.append(entry_dict)
137+
df = pd.DataFrame(wrapped_entries)
125138
df.to_csv(self.output_file, index=False)
126139
logging.info(f"Successfully wrote {len(self.entries)} entries to {self.output_file}")
127140
except Exception as e:

0 commit comments

Comments
 (0)